I need to parse .java file to do static analyze and extract information from the file like:
- variables
- methods
- annotations
- inner classes
- ...
I need to parse It at runtime something like this:
JavaClass c = parse("file.java");
c.getMethods();
I am not sure if there is any tool already exists, and if not can you please provide with some advice how to build it.