我一直在使用EclipseJDT分析源代码。目前,我有一个程序,能够获得一些代码,将其转换为AST,然后进行一些注释。int a = 10;但在以下情况下:我需要分析正确的部分并提取每个变量。get the name of the variable and the value associated
for(VariableDeclarationFragmen
main\java\com\xxxxx\xxxxx\utils\images\ImageUtil.java at org.eclipse.jdt.internal.compiler.ast.MessageSend.analyseCode(MessageSend.java:138)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration
at org.eclipse.jdt.core.dom.rewrite.ASTRewrite.validateIsCorrectAST(ASTRewrite.java:582) ~[na:na]
at org.eclipse.jdt.core.dom.rewrite.ASTRewrite.createTargetNode(ASTRewrite.java:698) ~[na:na]at org.eclipse.jdt.core.dom.rewrite.ASTRewrite.crea