|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.util.MethodUtil
Method
用のユーティリティクラスです。
フィールドの概要 | |
protected static Method |
GET_ELEMENT_TYPE_OF_COLLECTION_FROM_PARAMETER_METHOD
getElementTypeOfCollectionFromParameterType(Method, int) への定数参照です |
protected static Method |
GET_ELEMENT_TYPE_OF_COLLECTION_FROM_RETURN_METHOD
getElementTypeOfCollectionFromReturnType(Method) への定数参照です。 |
protected static Method |
GET_ELEMENT_TYPE_OF_LIST_FROM_PARAMETER_METHOD
getElementTypeOfListFromParameterType(Method, int) への定数参照です |
protected static Method |
GET_ELEMENT_TYPE_OF_LIST_FROM_RETURN_METHOD
getElementTypeOfListFromReturnType(Method) への定数参照です。 |
protected static Method |
GET_ELEMENT_TYPE_OF_SET_FROM_PARAMETER_METHOD
getElementTypeOfSetFromParameterType(Method, int) への定数参照です |
protected static Method |
GET_ELEMENT_TYPE_OF_SET_FROM_RETURN_METHOD
getElementTypeOfSetFromReturnType(Method) への定数参照です。 |
protected static String |
REFLECTION_UTIL_CLASS_NAME
ReflectUtilのクラス名です。 |
メソッドの概要 | |
protected static Method |
getElementTypeFromParameterMethod(String type)
ReflectionUtil#getElementTypeOfXxxFromParameter の
Method を返します。 |
protected static Method |
getElementTypeFromReturnMethod(String type)
ReflectionUtil#getElementTypeOfXxxFromReturn の
Method を返します。 |
static Class |
getElementTypeOfCollectionFromParameterType(Method method,
int position)
Java5以上の場合は、メソッドの引数型 (パラメタ化されたコレクション) の要素型を返します。 |
static Class |
getElementTypeOfCollectionFromReturnType(Method method)
指定されたメソッドの戻り値型として宣言されているパラメタ化されたコレクションの要素型を返します。 |
static Class |
getElementTypeOfListFromParameterType(Method method,
int position)
Java5以上の場合は、メソッドの引数型 (パラメタ化されたリスト) の要素型を返します。 |
static Class |
getElementTypeOfListFromReturnType(Method method)
指定されたメソッドの戻り値型として宣言されているパラメタ化されたリストの要素型を返します。 |
static Class |
getElementTypeOfSetFromParameterType(Method method,
int position)
Java5以上の場合は、メソッドの引数型 (パラメタ化されたセット) の要素型を返します。 |
static Class |
getElementTypeOfSetFromReturnType(Method method)
指定されたメソッドの戻り値型として宣言されているパラメタ化されたセットの要素型を返します。 |
static String |
getSignature(String methodName,
Class[] argTypes)
シグニチャを返します。 |
static String |
getSignature(String methodName,
Object[] methodArgs)
シグニチャを返します。 |
static Object |
invoke(Method method,
Object target,
Object[] args)
Method.invoke(Object, Object[]) の例外処理をラップします。 |
static boolean |
isAbstract(Method method)
abstract かどうかを返します。 |
static boolean |
isBridgeMethod(Method method)
ブリッジメソッドかどうか返します。 |
static boolean |
isEqualsMethod(Method method)
equalsメソッドかどうかを返します。 |
static boolean |
isHashCodeMethod(Method method)
hashCodeメソッドかどうか返します。 |
static boolean |
isSyntheticMethod(Method method)
合成メソッドかどうかを返します。 |
static boolean |
isToStringMethod(Method method)
toStringメソッドかどうか返します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected static final String REFLECTION_UTIL_CLASS_NAME
protected static final Method GET_ELEMENT_TYPE_OF_COLLECTION_FROM_PARAMETER_METHOD
getElementTypeOfCollectionFromParameterType(Method, int)
への定数参照です
protected static final Method GET_ELEMENT_TYPE_OF_COLLECTION_FROM_RETURN_METHOD
getElementTypeOfCollectionFromReturnType(Method)
への定数参照です。
protected static final Method GET_ELEMENT_TYPE_OF_LIST_FROM_PARAMETER_METHOD
getElementTypeOfListFromParameterType(Method, int)
への定数参照です
protected static final Method GET_ELEMENT_TYPE_OF_LIST_FROM_RETURN_METHOD
getElementTypeOfListFromReturnType(Method)
への定数参照です。
protected static final Method GET_ELEMENT_TYPE_OF_SET_FROM_PARAMETER_METHOD
getElementTypeOfSetFromParameterType(Method, int)
への定数参照です
protected static final Method GET_ELEMENT_TYPE_OF_SET_FROM_RETURN_METHOD
getElementTypeOfSetFromReturnType(Method)
への定数参照です。
メソッドの詳細 |
public static Object invoke(Method method, Object target, Object[] args) throws InvocationTargetRuntimeException, IllegalAccessRuntimeException
Method.invoke(Object, Object[])
の例外処理をラップします。
method
- target
- args
-
InvocationTargetRuntimeException
- InvocationTargetException
が発生した場合
IllegalAccessRuntimeException
- IllegalAccessException
が発生した場合Method.invoke(Object, Object[])
public static boolean isAbstract(Method method)
abstract
かどうかを返します。
method
-
abstract
かどうかpublic static String getSignature(String methodName, Class[] argTypes)
methodName
- argTypes
-
public static String getSignature(String methodName, Object[] methodArgs)
methodName
- methodArgs
-
public static boolean isEqualsMethod(Method method)
method
-
public static boolean isHashCodeMethod(Method method)
method
-
public static boolean isToStringMethod(Method method)
method
-
public static boolean isBridgeMethod(Method method)
method
-
public static boolean isSyntheticMethod(Method method)
method
-
public static Class getElementTypeOfCollectionFromParameterType(Method method, int position)
method
- メソッドposition
- パラメタ化されたコレクションが宣言されているメソッド引数の位置
public static Class getElementTypeOfCollectionFromReturnType(Method method)
method
- メソッド
public static Class getElementTypeOfListFromParameterType(Method method, int position)
method
- メソッドposition
- パラメタ化されたリストが宣言されているメソッド引数の位置
public static Class getElementTypeOfListFromReturnType(Method method)
method
- メソッド
public static Class getElementTypeOfSetFromParameterType(Method method, int position)
method
- メソッドposition
- パラメタ化されたコレクションが宣言されているメソッド引数の位置
public static Class getElementTypeOfSetFromReturnType(Method method)
method
- メソッド
protected static Method getElementTypeFromParameterMethod(String type)
ReflectionUtil#getElementTypeOfXxxFromParameter
の
Method
を返します。
type
- 取得するメソッドが対象とする型名
Method
protected static Method getElementTypeFromReturnMethod(String type)
ReflectionUtil#getElementTypeOfXxxFromReturn
の
Method
を返します。
type
- 取得するメソッドが対象とする型名
Method
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |