Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JDT parser problems with finding declaration and references
JDT parser problems with finding declaration and references [message #1790414] Sun, 10 June 2018 05:47
Federer Roger  is currently offline Federer Roger Friend
Messages: 19
Registered: December 2017
Junior Member
I have 2 problems about jdt parser and all my problem is based on non-Eclipse application.(No JavaModel)
I have already use createASTs to parse a batch java files with resolved binding setting.(out of Eclipse as an standalone appliacation)
1. How to find an AST node declaration? I check JDT-core source code and find an class called BindingResolver. There are some methods named findDeclaration here and the parameter is binding. I am not sure is it the only way to do that?
2. How to get references of an ast node? I mean Eclipse-IDE use JavaElement as a wrapper to do that but I know the core thing is using binding information to match them. I can't find these in JDT-Core source code. I need to find the uses of an AST node(reference) if I can just get the binding of this node.
Previous Topic:How to adapt the code generation
Next Topic:adding commons lang when using Gradle
Goto Forum:
  


Current Time: Thu Nov 15 07:02:21 GMT 2018

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

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

Back to the top