• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Aivar Annamaa
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • 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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic