Klasse GlobalReflectionTool

java.lang.Object
ch.nolix.core.reflection.GlobalReflectionTool

public final class GlobalReflectionTool extends Object
  • Methodendetails

    • allParametersOfMethodAreOfType

      public static boolean allParametersOfMethodAreOfType(Executable executable, Class<?> type)
    • createInstanceFromDefaultConstructorOfClass

      public static <T> T createInstanceFromDefaultConstructorOfClass(Class<T> paramClass)
    • getDefaultConstructorOfClass

      public static <T> Constructor<T> getDefaultConstructorOfClass(Class<T> paramClass)
    • getFirstFieldOfObjectThatStoresValue

      public static Field getFirstFieldOfObjectThatStoresValue(Object object, Object value)
    • getNameOfFirstFieldOfObjectThatStoresValue

      public static String getNameOfFirstFieldOfObjectThatStoresValue(Object object, Object value)
    • getPublicStaticFieldValuesOfClass

      public static IContainer<Object> getPublicStaticFieldValuesOfClass(Class<?> paramClass)
    • getValueFromStaticField

      public static <V> V getValueFromStaticField(Field staticField)
    • getValueOfFieldOfObject

      public static Object getValueOfFieldOfObject(Object object, Field field)
    • hasAnnotation

      public static <A extends Annotation> boolean hasAnnotation(AnnotatedElement object, Class<A> annotationType)
    • hasGivenTypeOrSuperType

      public static boolean hasGivenTypeOrSuperType(Field field, Class<?> type)
    • isPrivate

      public static boolean isPrivate(Member member)
    • isProtected

      public static boolean isProtected(Member member)
    • isPublic

      public static boolean isPublic(Member member)
    • isStatic

      public static boolean isStatic(Field field)
    • isStaticAndStoresValueOfGivenType

      public static boolean isStaticAndStoresValueOfGivenType(Field field, Class<?> type)