Package de.eldoria.eldoutilities.utils
Class ReflectionUtil
java.lang.Object
de.eldoria.eldoutilities.utils.ReflectionUtil
Utils used for reflections on classes.
- Since:
- 1.8.8
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Field[]
getAllFields
(Class<?> clazz) Get all declared fields from a class including superclassesstatic Field[]
getAllFields
(Object obj) Get all declared fields from a class including superclassesstatic boolean
static boolean
isPaper()
static boolean
-
Constructor Details
-
ReflectionUtil
public ReflectionUtil()
-
-
Method Details
-
getAllFields
Get all declared fields from a class including superclasses- Parameters:
obj
- object of class- Returns:
- array of fields
-
getAllFields
Get all declared fields from a class including superclasses- Parameters:
clazz
- clazz to check- Returns:
- array of fields
-
isPaper
public static boolean isPaper() -
isRelocated
public static boolean isRelocated() -
hasClass
-