java.lang.Object
org.seasar.doma.internal.util.ClassUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Constructor<T>getConstructor(Class<T> clazz, Class<?>... parameterTypes) static <T> FieldgetDeclaredField(Class<T> clazz, String name) static <T> MethodgetDeclaredMethod(Class<T> clazz, String name, Class<?>... parameterTypes) getEnclosingNames(String binaryName) static <T> Methodstatic StringgetPackageName(String binaryName) static StringgetSimpleName(String binaryName) static <T> TnewInstance(Class<T> clazz) static Class<?>toBoxedPrimitiveTypeIfPossible(Class<?> clazz) static <R> R
-
Constructor Details
-
ClassUtil
public ClassUtil()
-
-
Method Details
-
newInstance
- Throws:
WrapException
-
getConstructor
public static <T> Constructor<T> getConstructor(Class<T> clazz, Class<?>... parameterTypes) throws WrapException - Throws:
WrapException
-
getMethod
public static <T> Method getMethod(Class<T> clazz, String name, Class<?>... parameterTypes) throws WrapException - Throws:
WrapException
-
getDeclaredMethod
public static <T> Method getDeclaredMethod(Class<T> clazz, String name, Class<?>... parameterTypes) throws WrapException - Throws:
WrapException
-
getDeclaredField
- Throws:
WrapException
-
getPackageName
-
getEnclosingNames
-
getSimpleName
-
toBoxedPrimitiveTypeIfPossible
-
traverse
-