JavaParser is a library for parsing Java source code. It offers access to the parsed code as an Abstract Syntax Tree (AST) and supports the visitor pattern for access and manipulation.
Homepage