static java.lang.Class |
ClassReflection.forName(java.lang.String name) |
Returns the Class object associated with the class or interface with the supplied string name.
|
java.lang.Object |
Field.get(java.lang.Object obj) |
Returns the value of the field on the supplied object.
|
static Constructor |
ClassReflection.getConstructor(java.lang.Class c,
java.lang.Class... parameterTypes) |
Returns a Constructor that represents the public constructor for the supplied class which takes the supplied
parameter types.
|
static Constructor |
ClassReflection.getDeclaredConstructor(java.lang.Class c,
java.lang.Class... parameterTypes) |
Returns a Constructor that represents the constructor for the supplied class which takes the supplied parameter
types.
|
static Field |
ClassReflection.getDeclaredField(java.lang.Class c,
java.lang.String name) |
Returns a Field that represents the specified declared field for the supplied class.
|
static Method |
ClassReflection.getDeclaredMethod(java.lang.Class c,
java.lang.String name,
java.lang.Class... parameterTypes) |
Returns a Method that represents the method declared by the supplied class which takes the supplied parameter
types.
|
static Field |
ClassReflection.getField(java.lang.Class c,
java.lang.String name) |
Returns a Field that represents the specified public member field for the supplied class.
|
static Method |
ClassReflection.getMethod(java.lang.Class c,
java.lang.String name,
java.lang.Class... parameterTypes) |
Returns a Method that represents the public member method for the supplied class which takes the supplied parameter
types.
|
java.lang.Object |
Method.invoke(java.lang.Object obj,
java.lang.Object... args) |
Invokes the underlying method on the supplied object with the supplied parameters.
|
static <T> T |
ClassReflection.newInstance(java.lang.Class<T> c) |
Creates a new instance of the class represented by the supplied Class.
|
java.lang.Object |
Constructor.newInstance(java.lang.Object... args) |
Uses the constructor to create and initialize a new instance of the constructor's declaring class, with the supplied
initialization parameters.
|
void |
Field.set(java.lang.Object obj,
java.lang.Object value) |
Sets the value of the field on the supplied object.
|