if(iHandles[f].getInstruction() instanceof IFEQ ) {
getFieldInstruction = iHandles[f+1].getInstruction();
System.out.println("found IF");
InstructionList iprint = iFactory.createPrintln("The control is in IF");
iList.setPositions();
main.setMaxStack();
main.setMaxLocals();
main.removeLineNumbers();
iList.insert(getFieldInstruction, iprint);
main.setInstructionList(iList);
}
上記のコードでは、 ifステートメントでバイトコードを計測しています。IFEQやIF_ICMPNEなどの定数を使用して、バイトコード内のifステートメントを検索しています。すべてのメソッドでバイトコードを計測したい。これを行うためにどの定数を使用できますか? またはどのように可能ですか?