Class ClassReflection
java.lang.Object
zombie.entity.util.reflect.ClassReflection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Classstatic AnnotationgetAnnotation(Class clazz0, Class<? extends Annotation> clazz1) static Annotation[]getAnnotations(Class clazz) static ClassgetComponentType(Class clazz) static ConstructorgetConstructor(Class clazz, Class... clazzs) static Constructor[]getConstructors(Class clazz) static AnnotationgetDeclaredAnnotation(Class clazz0, Class<? extends Annotation> clazz1) static Annotation[]getDeclaredAnnotations(Class clazz) static ConstructorgetDeclaredConstructor(Class clazz, Class... clazzs) static FieldgetDeclaredField(Class clazz, String string) static Field[]getDeclaredFields(Class clazz) static MethodgetDeclaredMethod(Class clazz, String string, Class... clazzs) static Method[]getDeclaredMethods(Class clazz) static Object[]getEnumConstants(Class clazz) static Fieldstatic Field[]static Class[]getInterfaces(Class clazz) static Methodstatic Method[]getMethods(Class clazz) static StringgetSimpleName(Class clazz) static booleanisAbstract(Class clazz) static booleanisAnnotation(Class clazz) static booleanisAnnotationPresent(Class clazz0, Class<? extends Annotation> clazz1) static booleanstatic booleanisAssignableFrom(Class clazz0, Class clazz1) static booleanstatic booleanisInstance(Class clazz, Object object) static booleanisInterface(Class clazz) static booleanisMemberClass(Class clazz) static booleanisPrimitive(Class clazz) static booleanisStaticClass(Class clazz) static <T> TnewInstance(Class<T> clazz)
-
Constructor Details
-
ClassReflection
public ClassReflection()
-
-
Method Details
-
forName
- Throws:
ReflectionException
-
getSimpleName
-
isInstance
-
isAssignableFrom
-
isMemberClass
-
isStaticClass
-
isArray
-
isPrimitive
-
isEnum
-
isAnnotation
-
isInterface
-
isAbstract
-
newInstance
- Throws:
ReflectionException
-
getComponentType
-
getConstructors
-
getConstructor
- Throws:
ReflectionException
-
getDeclaredConstructor
public static Constructor getDeclaredConstructor(Class clazz, Class... clazzs) throws ReflectionException - Throws:
ReflectionException
-
getEnumConstants
-
getMethods
-
getMethod
public static Method getMethod(Class clazz, String string, Class... clazzs) throws ReflectionException - Throws:
ReflectionException
-
getDeclaredMethods
-
getDeclaredMethod
public static Method getDeclaredMethod(Class clazz, String string, Class... clazzs) throws ReflectionException - Throws:
ReflectionException
-
getFields
-
getField
- Throws:
ReflectionException
-
getDeclaredFields
-
getDeclaredField
- Throws:
ReflectionException
-
isAnnotationPresent
-
getAnnotations
-
getAnnotation
-
getDeclaredAnnotations
-
getDeclaredAnnotation
-
getInterfaces
-