Class ReflectionUtil

java.lang.Object
de.eldoria.eldoutilities.utils.ReflectionUtil

public final class ReflectionUtil extends Object
Utils used for reflections on classes.
Since:
1.8.8
  • Constructor Details

    • ReflectionUtil

      public ReflectionUtil()
  • Method Details

    • getAllFields

      public static Field[] getAllFields(Object obj)
      Get all declared fields from a class including superclasses
      Parameters:
      obj - object of class
      Returns:
      array of fields
    • getAllFields

      public static Field[] getAllFields(Class<?> clazz)
      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

      public static boolean hasClass(String clazz)