Example usage for Java com.badlogic.gdx.utils.reflect Field fields, constructors, methods, implement or subclass
The text is from its open source code.
Object | get(Object obj) Returns the value of the field on the supplied object. |
Annotation | getDeclaredAnnotation(Class extends java.lang.annotation.Annotation> annotationType) Returns an Annotation object reflecting the annotation provided, or null of this field doesn't have such an annotation. |
Class | getDeclaringClass() Returns the Class object representing the class or interface that declares the field. |
Class | getElementType(int index) If the type of the field is parameterized, returns the Class object representing the parameter type at the specified index, null otherwise. |
String | getName() Returns the name of the field. |
Class | getType() Returns a Class object that identifies the declared type for the field. |
boolean | isAccessible() |
boolean | isAnnotationPresent(Class extends java.lang.annotation.Annotation> annotationType) Returns true if the field includes an annotation of the provided class type. |
boolean | isFinal() Return true if the field includes the final modifier. |
boolean | isStatic() Return true if the field includes the static modifier. |
boolean | isSynthetic() Return true if the field is a synthetic field. |
boolean | isTransient() Return true if the field includes the transient modifier. |
void | set(Object obj, Object value) Sets the value of the field on the supplied object. |
void | setAccessible(boolean accessible) |