Package | Description |
---|---|
com.badlogic.gdx.utils.reflect |
Modifier and Type | Method and Description |
---|---|
static Annotation |
ClassReflection.getAnnotation(java.lang.Class c,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Returns an
Annotation object reflecting the annotation provided, or null if this class doesn't have such an
annotation. |
static Annotation[] |
ClassReflection.getAnnotations(java.lang.Class c)
Returns an array of
Annotation objects reflecting all annotations declared by the supplied class, and inherited
from its superclass. |
Annotation |
Field.getDeclaredAnnotation(java.lang.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. |
Annotation |
Method.getDeclaredAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Returns an
Annotation object reflecting the annotation provided, or null of this method doesn't
have such an annotation. |
static Annotation |
ClassReflection.getDeclaredAnnotation(java.lang.Class c,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Returns an
Annotation object reflecting the annotation provided, or null if this class doesn't have such an
annotation. |
Annotation[] |
Field.getDeclaredAnnotations()
Returns an array of
Annotation objects reflecting all annotations declared by this field,
or an empty array if there are none. |
Annotation[] |
Method.getDeclaredAnnotations()
Returns an array of
Annotation objects reflecting all annotations declared by this method,
or an empty array if there are none. |
static Annotation[] |
ClassReflection.getDeclaredAnnotations(java.lang.Class c)
Returns an array of
Annotation objects reflecting all annotations declared by the supplied class, or an empty
array if there are none. |