com.espertech.esper.epl.annotation
Class AnnotationUtil

java.lang.Object
  extended by com.espertech.esper.epl.annotation.AnnotationUtil

public class AnnotationUtil
extends java.lang.Object

Utility to handle EPL statement annotations.


Constructor Summary
AnnotationUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationUtil

public AnnotationUtil()
Method Detail

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 annotations
engineImportService - engine imports
eplStatement - 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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com