public class AnnotationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getAnnotationPattern(Annotation annotation)
Extract the
pattern() from annotation. |
static Annotation[] |
getAnnotationsArrayValue(Annotation annotation)
Extract the Annotations array
value() from annotation if present,
nul otherwise. |
static Object |
getAnnotationValue(Annotation annotation)
Extract the
value() from annotation. |
public static Object getAnnotationValue(Annotation annotation)
value() from annotation.annotation - the annotation has to be introspected.value().public static String getAnnotationPattern(Annotation annotation)
pattern() from annotation.annotation - the annotation has to be introspected.pattern().public static Annotation[] getAnnotationsArrayValue(Annotation annotation)
value() from annotation if present,
nul otherwise.annotation - the annotation has to be introspected.value() as Annotations array.Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.