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