public abstract class LdiReflectionUtil extends Object
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
LdiReflectionUtil() |
public static <T> Class<T> forName(String className) throws ClassNotFoundRuntimeException
public static <T> Class<T> forName(String className, ClassLoader loader) throws ClassNotFoundRuntimeException
public static <T> Class<T> forNameNoException(String className, ClassLoader loader)
public static <T> Constructor<T> getConstructor(Class<T> clazz, Class<?>... argTypes) throws NoSuchConstructorRuntimeException
public static <T> Constructor<T> getDeclaredConstructor(Class<T> clazz, Class<?>... argTypes) throws NoSuchConstructorRuntimeException
public static Field getField(Class<?> clazz, String name) throws NoSuchFieldRuntimeException
public static Field getDeclaredField(Class<?> clazz, String name) throws NoSuchFieldRuntimeException
public static Method getMethod(Class<?> clazz, String name, Class<?>... argTypes) throws NoSuchMethodRuntimeException
public static Method getDeclaredMethod(Class<?> clazz, String name, Class<?>... argTypes) throws NoSuchMethodRuntimeException
public static <T> T newInstance(Class<T> clazz) throws InstantiationRuntimeException, IllegalAccessRuntimeException
public static <T> T newInstance(Constructor<T> constructor, Object... args) throws InstantiationRuntimeException, IllegalAccessRuntimeException
public static <T> T getValue(Field field, Object target) throws IllegalAccessRuntimeException
public static <T> T getStaticValue(Field field) throws IllegalAccessRuntimeException
public static void setValue(Field field, Object target, Object value) throws IllegalAccessRuntimeException
public static void setStaticValue(Field field, Object value) throws IllegalAccessRuntimeException
public static <T> T invoke(Method method, Object target, Object... args) throws IllegalAccessRuntimeException, InvocationTargetRuntimeException
public static <T> T invokeStatic(Method method, Object... args) throws IllegalAccessRuntimeException, InvocationTargetRuntimeException
public static Class<?> getElementTypeOfCollection(Type parameterizedCollection)
public static Class<?> getElementTypeOfCollectionFromFieldType(Field field)
public static Class<?> getElementTypeOfCollectionFromParameterType(Method method, int parameterPosition)
public static Class<?> getElementTypeOfCollectionFromReturnType(Method method)
public static Class<?> getElementTypeOfListFromFieldType(Field field)
public static Class<?> getElementTypeOfListFromParameterType(Method method, int parameterPosition)
public static Class<?> getElementTypeOfListFromReturnType(Method method)
public static Class<?> getElementTypeOfSetFromFieldType(Field field)
public static Class<?> getElementTypeOfSetFromParameterType(Method method, int parameterPosition)
Copyright © 2015–2019 The DBFlute Project. All rights reserved.