メソッド本体を開始する Java .class ファイルを検索する方法
元。
package com.test;
class Hello
{
public static boolean isTrue() {
return true;
}
public static void main(String args[])
{
}
}
isTrue()
Hello.class のメソッド本体の開始位置を知りたい
アドレス 0x0205 の hexeditor で 04 0C (バイトコード: iconst_1 ireturn ) を見つけることができますが、この値を任意のメソッドの名前でプログラム的に取得したいと考えています。