Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Is it possible to get ASTNode and corresponding IBinding using offset and length?
Is it possible to get ASTNode and corresponding IBinding using offset and length? [message #1779306] Fri, 05 January 2018 08:13 Go to next message
Federer Roger  is currently offline Federer Roger Friend
Messages: 19
Registered: December 2017
Junior Member
I have already get a CompilationUnit and now I want to determine a target area (offset, offset + length) in the CompilationUnit is ASTNode or not?
Re: Is it possible to get ASTNode and corresponding IBinding using offset and length? [message #1779322 is a reply to message #1779306] Fri, 05 January 2018 11:04 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1632
Registered: July 2009
Senior Member
Have a look at class org.eclipse.jdt.core.dom.NodeFinder.
The binding you should be able to get from the node, if the ASTParser was instructed to resolve bindings.
Previous Topic:Maven library not found when I test an Eclipse Plug-In
Next Topic:Empty Error Message at "Run"
Goto Forum:
  


Current Time: Tue Oct 16 07:57:28 GMT 2018

Powered by FUDForum. Page generated in 0.02294 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top