|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.util.MethodUtil
Method
用のユーティリティクラスです。
フィールドの概要 | |
protected static Method |
GET_ELEMENT_TYPE_FROM_PARAMETER_METHOD
getElementTypeOfListFromParameterMethod() への定数参照です |
protected static Method |
GET_ELEMENT_TYPE_FROM_RETURN_METHOD
getElementTypeOfListFromReturnMethod() への定数参照です。 |
protected static String |
REFLECTION_UTIL_CLASS_NAME
ReflectUtilのクラス名です。 |
メソッドの概要 | |
protected static Method |
getElementTypeOfListFromParameterMethod()
getElementTypeOfListFromParameterの Method を返します。 |
static Class |
getElementTypeOfListFromParameterType(Method method,
int position)
Java5以上の場合は、引数のGenericsなListの要素を返します。 |
protected static Method |
getElementTypeOfListFromReturnMethod()
getElementTypeOfListFromReturnの Method を返します。 |
static Class |
getElementTypeOfListFromReturnType(Method method)
Java5以上の場合は、戻り値のGenericsなListの要素を返します。 |
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_FROM_PARAMETER_METHOD
getElementTypeOfListFromParameterMethod()
への定数参照です
protected static final Method GET_ELEMENT_TYPE_FROM_RETURN_METHOD
getElementTypeOfListFromReturnMethod()
への定数参照です。
メソッドの詳細 |
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 getElementTypeOfListFromParameterType(Method method, int position)
method
- position
-
public static Class getElementTypeOfListFromReturnType(Method method)
method
-
protected static Method getElementTypeOfListFromParameterMethod()
Method
を返します。
Method
protected static Method getElementTypeOfListFromReturnMethod()
Method
を返します。
Method
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |