程序包 | 说明 |
---|---|
com.fr.stable.collections.utils.reflect |
限定符和类型 | 方法和说明 |
---|---|
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 |
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. |
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. |
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[] |
Method.getDeclaredAnnotations()
Returns an array of
Annotation objects reflecting all annotations declared by this method,
or an empty array if there are none. |
Annotation[] |
Field.getDeclaredAnnotations()
Returns an array of
Annotation objects reflecting all annotations declared by this field,
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. |