Class ReflectionUtils
java.lang.Object
de.studiocode.inventoryaccess.util.ReflectionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tconstruct(Constructor<T> constructor, Object... args) static <T> TconstructEmpty(Class<?> clazz) static <T> Class<T>getBukkitClass(String path) protected static StringgetCB()static <T> Class<T>getCBClass(String path) static <T> Class<T>static <T> Constructor<T>getConstructor(Class<T> clazz, boolean declared, Class<?>... parameterTypes) static Fieldstatic <T> TgetFieldValue(Field field, Object obj) static <T> Class<T>getImplClass(String path) static Methodprotected static intstatic <T> TinvokeMethod(Method method, Object obj, Object... args) static voidsetFieldValue(Field field, Object obj, Object value)
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
getCB
-
getVersionNumber
protected static int getVersionNumber() -
getImplClass
-
getBukkitClass
-
getCBClass
-
getClass
-
getField
-
getConstructor
public static <T> Constructor<T> getConstructor(Class<T> clazz, boolean declared, Class<?>... parameterTypes) -
constructEmpty
-
construct
-
getMethod
-
invokeMethod
-
setFieldValue
-
getFieldValue
-