Package | Description |
---|---|
com.projectkorra.projectkorra.util |
Modifier and Type | Method and Description |
---|---|
static ReflectionHandler.PackageType |
ReflectionHandler.PackageType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReflectionHandler.PackageType[] |
ReflectionHandler.PackageType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.Constructor<?> |
ReflectionHandler.getConstructor(java.lang.String className,
ReflectionHandler.PackageType packageType,
java.lang.Class<?>... parameterTypes)
Returns the constructor of a desired class with the given parameter types
|
static java.lang.reflect.Field |
ReflectionHandler.getField(java.lang.String className,
ReflectionHandler.PackageType packageType,
boolean declared,
java.lang.String fieldName)
Returns a field of a desired class with the given name
|
static java.lang.reflect.Method |
ReflectionHandler.getMethod(java.lang.String className,
ReflectionHandler.PackageType packageType,
java.lang.String methodName,
java.lang.Class<?>... parameterTypes)
Returns a method of a desired class with the given parameter types
|
static java.lang.Object |
ReflectionHandler.getValue(java.lang.Object instance,
java.lang.String className,
ReflectionHandler.PackageType packageType,
boolean declared,
java.lang.String fieldName)
Returns the value of a field of a desired class of an object
|
static java.lang.Object |
ReflectionHandler.instantiateObject(java.lang.String className,
ReflectionHandler.PackageType packageType,
java.lang.Object... arguments)
Returns an instance of a desired class with the given arguments
|
static java.lang.Object |
ReflectionHandler.invokeMethod(java.lang.Object instance,
java.lang.String className,
ReflectionHandler.PackageType packageType,
java.lang.String methodName,
java.lang.Object... arguments)
Invokes a method of a desired class on an object with the given arguments
|
static void |
ReflectionHandler.setValue(java.lang.Object instance,
java.lang.String className,
ReflectionHandler.PackageType packageType,
boolean declared,
java.lang.String fieldName,
java.lang.Object value)
Sets the value of a field of a desired class of an object
|