Top Fields Constructors Methods
org.glassfish.hk2.utilities.reflection.internal

public Class ClassReflectionHelperUtilities

extends Object
Class Inheritance
Imports
java.lang.reflect.Field, .Method, java.security.AccessController, .PrivilegedAction, java.util.Collections, .LinkedHashSet, .Set, jakarta.annotation.PostConstruct, .PreDestroy, org.glassfish.hk2.utilities.reflection.MethodWrapper, .Pretty

Author
jwells

Field Summary

Modifier and TypeField and Description
pack-priv static final String
pack-priv static final String
private static final Set<Field>
private static final Set<MethodWrapper>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static Set<Field>
pack-priv static Set<MethodWrapper>
getAllMethodWrappers(Class<?>
Class to get methods of
clazz
)

Returns methods of a class, including those in superclasses and interfaces.

private static Set<Field>
getDeclaredFieldWrappers(final Class<?>
The class to examine
clazz
)

Gets the EXACT set of FieldWrappers on this class only.

private static Set<MethodWrapper>
getDeclaredMethodWrappers(final Class<?>
The class to examine
clazz
)

Gets the EXACT set of MethodWrappers on this class only.

private static Set<Field>
private static Set<MethodWrapper>
pack-priv static boolean
pack-priv static boolean
private static Field[]
private static Method[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONVENTION_POST_CONSTRUCTback to summary
pack-priv static final String CONVENTION_POST_CONSTRUCT
CONVENTION_PRE_DESTROYback to summary
pack-priv static final String CONVENTION_PRE_DESTROY
OBJECT_FIELDSback to summary
private static final Set<Field> OBJECT_FIELDS
OBJECT_METHODSback to summary
private static final Set<MethodWrapper> OBJECT_METHODS

Constructor Detail

ClassReflectionHelperUtilitiesback to summary
public ClassReflectionHelperUtilities()

Method Detail

getAllFieldWrappersback to summary
pack-priv static Set<Field> getAllFieldWrappers(Class<?> clazz)
getAllMethodWrappersback to summary
pack-priv static Set<MethodWrapper> getAllMethodWrappers(Class<?> clazz)

Returns methods of a class, including those in superclasses and interfaces.

Parameters
clazz:Class<?>

Class to get methods of

getDeclaredFieldWrappersback to summary
private static Set<Field> getDeclaredFieldWrappers(final 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:Class<?>

The class to examine

getDeclaredMethodWrappersback to summary
private static Set<MethodWrapper> getDeclaredMethodWrappers(final 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:Class<?>

The class to examine

getObjectFieldsback to summary
private static Set<Field> getObjectFields()
getObjectMethodsback to summary
private static Set<MethodWrapper> getObjectMethods()
isPostConstructback to summary
pack-priv static boolean isPostConstruct(Method m)
isPreDestroyback to summary
pack-priv static boolean isPreDestroy(Method m)
secureGetDeclaredFieldsback to summary
private static Field[] secureGetDeclaredFields(final Class<?> clazz)
secureGetDeclaredMethodsback to summary
private static Method[] secureGetDeclaredMethods(final Class<?> clazz)