| Package | Description |
|---|---|
| com.HamiStudios.ArchonCrates.API |
| Modifier and Type | Method and Description |
|---|---|
static ReflectionUtils.PackageType |
ReflectionUtils.PackageType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReflectionUtils.PackageType[] |
ReflectionUtils.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<?> |
ReflectionUtils.getConstructor(java.lang.String className,
ReflectionUtils.PackageType packageType,
java.lang.Class<?>... parameterTypes)
Returns the constructor of a desired class with the given parameter types
|
static java.lang.reflect.Field |
ReflectionUtils.getField(java.lang.String className,
ReflectionUtils.PackageType packageType,
boolean declared,
java.lang.String fieldName)
Returns a field of a desired class with the given name
|
static java.lang.reflect.Method |
ReflectionUtils.getMethod(java.lang.String className,
ReflectionUtils.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 |
ReflectionUtils.getValue(java.lang.Object instance,
java.lang.String className,
ReflectionUtils.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 |
ReflectionUtils.instantiateObject(java.lang.String className,
ReflectionUtils.PackageType packageType,
java.lang.Object... arguments)
Returns an instance of a desired class with the given arguments
|
static java.lang.Object |
ReflectionUtils.invokeMethod(java.lang.Object instance,
java.lang.String className,
ReflectionUtils.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 |
ReflectionUtils.setValue(java.lang.Object instance,
java.lang.String className,
ReflectionUtils.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
|