public class LdiMethodUtil extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static Method |
GET_ELEMENT_TYPE_OF_COLLECTION_FROM_PARAMETER_METHOD |
protected static Method |
GET_ELEMENT_TYPE_OF_COLLECTION_FROM_RETURN_METHOD |
protected static Method |
GET_ELEMENT_TYPE_OF_LIST_FROM_PARAMETER_METHOD |
protected static Method |
GET_ELEMENT_TYPE_OF_LIST_FROM_RETURN_METHOD |
protected static Method |
GET_ELEMENT_TYPE_OF_SET_FROM_PARAMETER_METHOD |
protected static Method |
GET_ELEMENT_TYPE_OF_SET_FROM_RETURN_METHOD |
protected static String |
REFLECTION_UTIL_CLASS_NAME |
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
LdiMethodUtil() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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) |
static boolean |
isAbstract(Method method) |
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メソッドかどうか返します。
|
protected static final String REFLECTION_UTIL_CLASS_NAME
protected static final Method GET_ELEMENT_TYPE_OF_COLLECTION_FROM_PARAMETER_METHOD
protected static final Method GET_ELEMENT_TYPE_OF_COLLECTION_FROM_RETURN_METHOD
protected static final Method GET_ELEMENT_TYPE_OF_LIST_FROM_PARAMETER_METHOD
protected static final Method GET_ELEMENT_TYPE_OF_LIST_FROM_RETURN_METHOD
protected static final Method GET_ELEMENT_TYPE_OF_SET_FROM_PARAMETER_METHOD
protected static final Method GET_ELEMENT_TYPE_OF_SET_FROM_RETURN_METHOD
public static Object invoke(Method method, Object target, Object[] args) throws InvocationTargetRuntimeException, IllegalAccessRuntimeException
public static boolean isAbstract(Method method)
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 - 取得するメソッドが対象とする型名MethodCopyright © 2015 The DBFlute Project. All rights reserved.