Class AnnotationUtils
- java.lang.Object
-
- org.apache.commons.digester.annotations.utils.AnnotationUtils
-
public class AnnotationUtils extends Object
Simple utility class to introspect annotations.- Since:
- 2.1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAnnotationPattern(Annotation annotation)
Extract thepattern()
from annotation.static Annotation[]
getAnnotationsArrayValue(Annotation annotation)
Extract the Annotations arrayvalue()
from annotation if present, nul otherwise.static Object
getAnnotationValue(Annotation annotation)
Extract thevalue()
from annotation.
-
-
-
Method Detail
-
getAnnotationValue
public static Object getAnnotationValue(Annotation annotation)
Extract thevalue()
from annotation.- Parameters:
annotation
- the annotation has to be introspected.- Returns:
- the annotation
value()
.
-
getAnnotationPattern
public static String getAnnotationPattern(Annotation annotation)
Extract thepattern()
from annotation.- Parameters:
annotation
- the annotation has to be introspected.- Returns:
- the annotation
pattern()
.
-
getAnnotationsArrayValue
public static Annotation[] getAnnotationsArrayValue(Annotation annotation)
Extract the Annotations arrayvalue()
from annotation if present, nul otherwise.- Parameters:
annotation
- the annotation has to be introspected.- Returns:
- the annotation
value()
as Annotations array.
-
-