com.espertech.esper.epl.annotation
Class AnnotationUtil
java.lang.Object
com.espertech.esper.epl.annotation.AnnotationUtil
public class AnnotationUtil
- extends java.lang.Object
Utility to handle EPL statement annotations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationUtil
public AnnotationUtil()
mapByNameLowerCase
public static java.util.Map<java.lang.String,java.util.List<AnnotationDesc>> mapByNameLowerCase(java.util.List<AnnotationDesc> annotations)
getValue
public static java.lang.Object getValue(AnnotationDesc desc)
compileAnnotations
public static java.lang.annotation.Annotation[] compileAnnotations(java.util.List<AnnotationDesc> annotationSpec,
EngineImportService engineImportService,
java.lang.String eplStatement)
- Compile annotation objects from descriptors.
- Parameters:
annotationSpec
- spec for annotationsengineImportService
- engine importseplStatement
- statement expression
- Returns:
- annotations
findAnnotation
public static java.lang.annotation.Annotation findAnnotation(java.lang.annotation.Annotation[] annotations,
java.lang.Class annotationClass)
findAnnotations
public static java.util.List<java.lang.annotation.Annotation> findAnnotations(java.lang.annotation.Annotation[] annotations,
java.lang.Class annotationClass)
mergeAnnotations
public static java.lang.annotation.Annotation[] mergeAnnotations(java.lang.annotation.Annotation[] first,
java.lang.annotation.Annotation[] second)
getExpectSingleStringValue
public static java.lang.String getExpectSingleStringValue(java.lang.String msgPrefix,
java.util.List<AnnotationDesc> annotationsSameName)
throws ExprValidationException
- Throws:
ExprValidationException