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