Class ReflectionUtils

java.lang.Object
de.studiocode.inventoryaccess.util.ReflectionUtils

public class ReflectionUtils extends Object
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • getCB

      protected static String getCB()
    • getVersionNumber

      protected static int getVersionNumber()
    • getImplClass

      public static <T> Class<T> getImplClass(String path)
    • getBukkitClass

      public static <T> Class<T> getBukkitClass(String path)
    • getCBClass

      public static <T> Class<T> getCBClass(String path)
    • getClass

      public static <T> Class<T> getClass(String path)
    • getField

      public static Field getField(Class<?> clazz, boolean declared, String name)
    • getConstructor

      public static <T> Constructor<T> getConstructor(Class<T> clazz, boolean declared, Class<?>... parameterTypes)
    • constructEmpty

      public static <T> T constructEmpty(Class<?> clazz)
    • construct

      public static <T> T construct(Constructor<T> constructor, Object... args)
    • getMethod

      public static Method getMethod(Class<?> clazz, boolean declared, String name, Class<?>... parameterTypes)
    • invokeMethod

      public static <T> T invokeMethod(Method method, Object obj, Object... args)
    • setFieldValue

      public static void setFieldValue(Field field, Object obj, Object value)
    • getFieldValue

      public static <T> T getFieldValue(Field field, Object obj)