Class ClassReflectionHelperUtilities

java.lang.Object
org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities

public class ClassReflectionHelperUtilities extends Object
  • Field Details

  • Constructor Details

    • ClassReflectionHelperUtilities

      public ClassReflectionHelperUtilities()
  • Method Details

    • getObjectMethods

      private static Set<MethodWrapper> getObjectMethods()
    • getObjectFields

      private static Set<Field> getObjectFields()
    • secureGetDeclaredMethods

      private static Method[] secureGetDeclaredMethods(Class<?> clazz)
    • secureGetDeclaredFields

      private static Field[] secureGetDeclaredFields(Class<?> clazz)
    • getDeclaredMethodWrappers

      private static Set<MethodWrapper> getDeclaredMethodWrappers(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 Set<Field> getDeclaredFieldWrappers(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 Set<Field> getAllFieldWrappers(Class<?> clazz)
    • getAllMethodWrappers

      static Set<MethodWrapper> getAllMethodWrappers(Class<?> clazz)
    • isPostConstruct

      static boolean isPostConstruct(Method m)
    • isPreDestroy

      static boolean isPreDestroy(Method m)