Class ClassReflectionHelperUtilities
- java.lang.Object
-
- org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities
-
public class ClassReflectionHelperUtilities extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
CONVENTION_POST_CONSTRUCT
(package private) static java.lang.String
CONVENTION_PRE_DESTROY
private static java.util.Set<java.lang.reflect.Field>
OBJECT_FIELDS
private static java.util.Set<MethodWrapper>
OBJECT_METHODS
-
Constructor Summary
Constructors Constructor Description ClassReflectionHelperUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.util.Set<java.lang.reflect.Field>
getAllFieldWrappers(java.lang.Class<?> clazz)
(package private) static java.util.Set<MethodWrapper>
getAllMethodWrappers(java.lang.Class<?> clazz)
private static java.util.Set<java.lang.reflect.Field>
getDeclaredFieldWrappers(java.lang.Class<?> clazz)
Gets the EXACT set of FieldWrappers on this class only.private static java.util.Set<MethodWrapper>
getDeclaredMethodWrappers(java.lang.Class<?> clazz)
Gets the EXACT set of MethodWrappers on this class only.private static java.util.Set<java.lang.reflect.Field>
getObjectFields()
private static java.util.Set<MethodWrapper>
getObjectMethods()
(package private) static boolean
isPostConstruct(java.lang.reflect.Method m)
(package private) static boolean
isPreDestroy(java.lang.reflect.Method m)
private static java.lang.reflect.Field[]
secureGetDeclaredFields(java.lang.Class<?> clazz)
private static java.lang.reflect.Method[]
secureGetDeclaredMethods(java.lang.Class<?> clazz)
-
-
-
Field Detail
-
CONVENTION_POST_CONSTRUCT
static final java.lang.String CONVENTION_POST_CONSTRUCT
- See Also:
- Constant Field Values
-
CONVENTION_PRE_DESTROY
static final java.lang.String CONVENTION_PRE_DESTROY
- See Also:
- Constant Field Values
-
OBJECT_METHODS
private static final java.util.Set<MethodWrapper> OBJECT_METHODS
-
OBJECT_FIELDS
private static final java.util.Set<java.lang.reflect.Field> OBJECT_FIELDS
-
-
Method Detail
-
getObjectMethods
private static java.util.Set<MethodWrapper> getObjectMethods()
-
getObjectFields
private static java.util.Set<java.lang.reflect.Field> getObjectFields()
-
secureGetDeclaredMethods
private static java.lang.reflect.Method[] secureGetDeclaredMethods(java.lang.Class<?> clazz)
-
secureGetDeclaredFields
private static java.lang.reflect.Field[] secureGetDeclaredFields(java.lang.Class<?> clazz)
-
getDeclaredMethodWrappers
private static java.util.Set<MethodWrapper> getDeclaredMethodWrappers(java.lang.Class<?> clazz)
Gets the EXACT set of MethodWrappers on this class only. No subclasses. So this set should be considered RAW and has not taken into account any subclasses- Parameters:
clazz
- The class to examine- Returns:
-
getDeclaredFieldWrappers
private static java.util.Set<java.lang.reflect.Field> getDeclaredFieldWrappers(java.lang.Class<?> clazz)
Gets the EXACT set of FieldWrappers on this class only. No subclasses. So this set should be considered RAW and has not taken into account any subclasses- Parameters:
clazz
- The class to examine- Returns:
-
getAllFieldWrappers
static java.util.Set<java.lang.reflect.Field> getAllFieldWrappers(java.lang.Class<?> clazz)
-
getAllMethodWrappers
static java.util.Set<MethodWrapper> getAllMethodWrappers(java.lang.Class<?> clazz)
-
isPostConstruct
static boolean isPostConstruct(java.lang.reflect.Method m)
-
isPreDestroy
static boolean isPreDestroy(java.lang.reflect.Method m)
-
-