开发者

how to get info using ast parser

开发者 https://www.devze.com 2023-04-08 17:03 出处:网络
i want to get info from every class of a .java file so that i can save in a structure (maybe a list) the met开发者_JS百科hods that every method of every class calls. Can anyone help me? thanx!ANTLR ca

i want to get info from every class of a .java file so that i can save in a structure (maybe a list) the met开发者_JS百科hods that every method of every class calls. Can anyone help me? thanx!


ANTLR can generate a lexer/parser that will give you an AST. It has Java grammars ready to go, too.

0

精彩评论

暂无评论...
验证码 换一张
取 消