public class AnnotationUtil extends Object
Constructor and Description |
---|
AnnotationUtil() |
Modifier and Type | Method and Description |
---|---|
static Annotation[] |
compileAnnotations(List<AnnotationDesc> annotationSpec,
EngineImportService engineImportService,
String eplStatement)
Compile annotation objects from descriptors.
|
static Annotation |
findAnnotation(Annotation[] annotations,
Class annotationClass) |
static List<Annotation> |
findAnnotations(Annotation[] annotations,
Class annotationClass) |
static String |
getExpectSingleStringValue(String msgPrefix,
List<AnnotationDesc> annotationsSameName) |
static Object |
getValue(AnnotationDesc desc) |
static Map<String,List<AnnotationDesc>> |
mapByNameLowerCase(List<AnnotationDesc> annotations) |
static Annotation[] |
mergeAnnotations(Annotation[] first,
Annotation[] second) |
public static Map<String,List<AnnotationDesc>> mapByNameLowerCase(List<AnnotationDesc> annotations)
public static Object getValue(AnnotationDesc desc)
public static Annotation[] compileAnnotations(List<AnnotationDesc> annotationSpec, EngineImportService engineImportService, String eplStatement)
annotationSpec
- spec for annotationsengineImportService
- engine importseplStatement
- statement expressionpublic static Annotation findAnnotation(Annotation[] annotations, Class annotationClass)
public static List<Annotation> findAnnotations(Annotation[] annotations, Class annotationClass)
public static Annotation[] mergeAnnotations(Annotation[] first, Annotation[] second)
public static String getExpectSingleStringValue(String msgPrefix, List<AnnotationDesc> annotationsSameName) throws ExprValidationException
ExprValidationException