| Package | Description |
|---|---|
| com.almasb.fxgl.core.reflect |
| Modifier and Type | Method and Description |
|---|---|
static Class |
ClassReflection.forName(String name)
Returns the Class object associated with the class or interface with the supplied string name.
|
Object |
Field.get(Object obj)
Returns the value of the field on the supplied object.
|
static Constructor |
ClassReflection.getConstructor(Class c,
Class... parameterTypes)
Returns a
Constructor that represents the public constructor for the supplied class which takes the supplied
parameter types. |
static Constructor |
ClassReflection.getDeclaredConstructor(Class c,
Class... parameterTypes)
Returns a
Constructor that represents the constructor for the supplied class which takes the supplied parameter
types. |
static Field |
ClassReflection.getField(Class c,
String name)
Returns a
Field that represents the specified public member field for the supplied class. |
static <T> T |
ClassReflection.newInstance(Class<T> c)
Creates a new instance of the class represented by the supplied Class.
|
Object |
Constructor.newInstance(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(Object obj,
Object value)
Sets the value of the field on the supplied object.
|
Copyright © 2017. All rights reserved.