public class AnnotationUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
PATTERN
The
pattern string constant. |
private static java.lang.String |
VALUE
The
value string constant. |
Modifier | Constructor and Description |
---|---|
private |
AnnotationUtils()
This class can't be instantiated.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAnnotationPattern(java.lang.annotation.Annotation annotation)
Extract the
pattern() from annotation. |
static java.lang.annotation.Annotation[] |
getAnnotationsArrayValue(java.lang.annotation.Annotation annotation)
Extract the Annotations array
value() from annotation if present,
nul otherwise. |
static java.lang.Object |
getAnnotationValue(java.lang.annotation.Annotation annotation)
Extract the
value() from annotation. |
private static java.lang.Object |
invokeAnnotationMethod(java.lang.annotation.Annotation annotation,
java.lang.String method)
Invokes an annotation method.
|
private static final java.lang.String VALUE
value
string constant.private static final java.lang.String PATTERN
pattern
string constant.public static java.lang.Object getAnnotationValue(java.lang.annotation.Annotation annotation)
value()
from annotation.annotation
- the annotation has to be introspected.value()
.public static java.lang.String getAnnotationPattern(java.lang.annotation.Annotation annotation)
pattern()
from annotation.annotation
- the annotation has to be introspected.pattern()
.public static java.lang.annotation.Annotation[] getAnnotationsArrayValue(java.lang.annotation.Annotation annotation)
value()
from annotation if present,
nul otherwise.annotation
- the annotation has to be introspected.value()
as Annotations array.private static java.lang.Object invokeAnnotationMethod(java.lang.annotation.Annotation annotation, java.lang.String method)
annotationn
- the annotation has to be introspected.method
- the method name to execute.