Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] Using JDT to parse source files

Hello evrerybody,
I'm working to extract some metrics from .java files and I found JDT
is  a nice point to start from.
The only thing I can't obtain is to resolve name bindings: since I
want my app as a stand-alone application, I cannot access Eclipse API
to get all the JavaModel, so I've got to parse a poor source -code
string.
Well, I'm just looking for an idea to get bindings to work even using
suorce-code parsing.
Can you suggest any?
If what I need is unreachable, is there a way to instantiate a new
JavaProject from source code and then pass the ICompilationUnit from
each file to ASTParser?

Thank you very much...
Simone


Back to the top