• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Find path from one type to another (advanced API search)

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

Is there some tool or service for finding out how to reach from a certain type to another type using series of method calls?

Here's an example problem:
I'm trying to enhance Eclipse Java editor. I have an object of type ASTNode (abstract syntax tree node) and i want to find out from what file (IResource) this node comes from. Unfourtunately there's no direct way to get it and digging around in Eclipse huge API is not easy.

I'd like to have an API search tool that takes source type and target type as inputs and gives list of method call chains that allow reaching from source type to target.
Something like:

FROM: org.eclipse.jdt.core.dom.ASTNode
TO: org.eclipse.core.resources.IResource
Max number of calls: 3

solutions:
TO = Workspace.getResourceProvider(FROM.getAST()).getResource()
...

Similar thing exists for Haskell: http://www.haskell.org/hoogle

Or, can you please just point out some other good Java API search tools / services?

thanks in advance!
Aivar
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are a couple of searchable APIs, but nothing like that--sounds like a pretty good idea, though; there are times I would have used it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic