jp.liq.container.vocabulary
クラス Methods

java.lang.Object
  上位を拡張 jp.liq.container.vocabulary.Methods

public class Methods
extends java.lang.Object

リフレクション API の Wrapper を生成する static メソッド群です。 このクラスで定義されたメソッドは、static インポートして使用すると 具合が良いように命名されています。

作成者:
nose

コンストラクタの概要
Methods()
           
 
メソッドの概要
 MethodWrapper of(java.lang.Class<?> type, java.lang.String name, java.lang.Class<?>... params)
          MethodWrapperを生成します。
<T> ClassMethodFinder<T>
of(java.lang.Class<T> type)
          MethodFinder を生成します。
 ObjectMethodFinder of(java.lang.Object target)
          ObjectMethodFinder を生成します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Methods

public Methods()
メソッドの詳細

of

public final <T> ClassMethodFinder<T> of(java.lang.Class<T> type)
MethodFinder を生成します。 検索の対象となるメソッドは、引数に指定されたjava.lang.Classの、 getMethods メソッドを使用して取得されます。

パラメータ:
type - メソッドを持つクラス
戻り値:
生成されたMethodFinder

of

public final ObjectMethodFinder of(java.lang.Object target)
ObjectMethodFinder を生成します。 検索の対象となるメソッドは、引数に指定されたjava.lang.Classの、 getMethods メソッドを使用して取得されます。

パラメータ:
target - メソッドを持つクラス
戻り値:
生成されたObjectMethodFinder

of

public final MethodWrapper of(java.lang.Class<?> type,
                              java.lang.String name,
                              java.lang.Class<?>... params)
MethodWrapperを生成します。

パラメータ:
type - メソッドを持つ型
name - メソッド名
params - メソッドの引数の型
戻り値:
生成された MethodWrapper


Copyright © 2008. All Rights Reserved.