Class ClassReflection
java.lang.Object
zombie.entity.util.reflect.ClassReflection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class
static Annotation
getAnnotation
(Class class0, Class<? extends Annotation> class1) static Annotation[]
getAnnotations
(Class _class) static Class
getComponentType
(Class _class) static Constructor
getConstructor
(Class class0, Class... class1) static Constructor[]
getConstructors
(Class _class) static Annotation
getDeclaredAnnotation
(Class class0, Class<? extends Annotation> class1) static Annotation[]
getDeclaredAnnotations
(Class _class) static Constructor
getDeclaredConstructor
(Class class0, Class... class1) static Field
getDeclaredField
(Class _class, String string) static Field[]
getDeclaredFields
(Class _class) static Method
getDeclaredMethod
(Class class0, String string, Class... class1) static Method[]
getDeclaredMethods
(Class _class) static Object[]
getEnumConstants
(Class _class) static Field
static Field[]
static Class[]
getInterfaces
(Class _class) static Method
static Method[]
getMethods
(Class _class) static String
getSimpleName
(Class _class) static boolean
isAbstract
(Class _class) static boolean
isAnnotation
(Class _class) static boolean
isAnnotationPresent
(Class class0, Class<? extends Annotation> class1) static boolean
static boolean
isAssignableFrom
(Class class0, Class class1) static boolean
static boolean
isInstance
(Class _class, Object object) static boolean
isInterface
(Class _class) static boolean
isMemberClass
(Class _class) static boolean
isPrimitive
(Class _class) static boolean
isStaticClass
(Class _class) static <T> T
newInstance
(Class<T> _class)
-
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 class0, Class... class1) throws ReflectionException - Throws:
ReflectionException
-
getEnumConstants
-
getMethods
-
getMethod
public static Method getMethod(Class class0, String string, Class... class1) throws ReflectionException - Throws:
ReflectionException
-
getDeclaredMethods
-
getDeclaredMethod
public static Method getDeclaredMethod(Class class0, String string, Class... class1) throws ReflectionException - Throws:
ReflectionException
-
getFields
-
getField
- Throws:
ReflectionException
-
getDeclaredFields
-
getDeclaredField
- Throws:
ReflectionException
-
isAnnotationPresent
-
getAnnotations
-
getAnnotation
-
getDeclaredAnnotations
-
getDeclaredAnnotation
-
getInterfaces
-