還有就是我的JCA文件的語法:獲取集合中的所有方法的指導下分別
methodBody:stackMethod localMethod descriptorMethod * instructionMethod *;
stackMethod:'.stack'NUMBER';' ;
localMethod:'.locals'NUMBER';' ;
descriptorMethod:'.descriptor'typeJCA';' qualifiedNumber';';
instructionMethod: ('L'NUMBER':')? op =指令+ ;
指令: qualifiedID('L'?NUMBER)*';' '。'qualifiedID'{'(('L'NUMBER)| NUMBER)*';' '}' ;
我希望得到所有方法的指令(instructionMethod *)separateley。隨着聽衆或觀衆
例:
@Override
public void enterInstructionMethod(InstructionMethodContext ctx) {
//Print all instruction+ (one by one in a loop or any way)
}
感謝。