Java Debug Interface

インタフェース
com.sun.jdi.Method の使用

Method を使用しているパッケージ
com.sun.jdi Java Debug Interface (JDI) のコアパッケージで、ブートストラップ機能以外に、値、型、およびターゲット仮想マシン自体に対するミラーを定義します。 
com.sun.jdi.event このパッケージは、JDI イベントとイベント処理を定義します。 
 

com.sun.jdi での Method の使用
 

Method を返す com.sun.jdi のメソッド
 Method ClassType.concreteMethodByName(String name, String signature)
          指定された名前およびシグニチャーを持つこのクラスから認識可能な、単一の非 abstract Method を返します。
 Method Location.method()
          この Location を含むメソッドを取得します。
 

Method 型の引数を持つ型を返す com.sun.jdi のメソッド
 List<Method> ReferenceType.allMethods()
          この型、そのスーパークラス、実装インタフェース、およびスーパーインタフェース、またはそのいずれかで宣言された各 Method を含むリストを返します。
 List<Method> ReferenceType.methods()
          この型内で宣言された各 Method を含むリストを返します。
 List<Method> ReferenceType.methodsByName(String name)
          指定された名前を持つ各可視 Method を含む List を返します。
 List<Method> ReferenceType.methodsByName(String name, String signature)
          指定された名前とシグニチャーを持つ各可視 Method を含む List を返します。
 List<Method> ReferenceType.visibleMethods()
          この型によって宣言された、またはこの型に継承された各 Method を含むリストを返します。
 

Method 型のパラメータを持つ com.sun.jdi のメソッド
 Value ObjectReference.invokeMethod(ThreadReference thread, Method method, List<? extends Value> arguments, int options)
          ターゲット VM 内のこのオブジェクトに対して、指定された Method を呼び出します。
 Value ClassType.invokeMethod(ThreadReference thread, Method method, List<? extends Value> arguments, int options)
          ターゲット VM 内の指定された static Method を呼び出します。
 ObjectReference ClassType.newInstance(ThreadReference thread, Method method, List<? extends Value> arguments, int options)
          ターゲット VM 内の指定されたコンストラクタの Method を使って、この型の新規インスタンスを構築します。
 

com.sun.jdi.event での Method の使用
 

Method を返す com.sun.jdi.event のメソッド
 Method MethodExitEvent.method()
          終了したメソッドを返します。
 Method MethodEntryEvent.method()
          呼び出されたメソッドを返します。
 


Java Debug Interface