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
Zhe Chen is currently offline Zhe ChenFriend
Messages: 13
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: 1599
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: Thu May 24 00:44:59 GMT 2018

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

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

Back to the top