public class AnnotationUtil extends Object
Constructor and Description |
---|
AnnotationUtil() |
public static Map<String,List<AnnotationDesc>> mapByNameLowerCase(List<AnnotationDesc> annotations)
public static Object getValue(AnnotationDesc desc)
public static Annotation[] compileAnnotations(List<AnnotationDesc> annotationSpec, ClasspathImportServiceCompileTime classpathImportService, Compilable compilable) throws StatementSpecCompileException
annotationSpec
- spec for annotationsclasspathImportService
- importscompilable
- statement expressionStatementSpecCompileException
- compile exceptionpublic static CodegenExpression makeAnnotations(EPTypeClass arrayType, Annotation[] annotations, CodegenMethod parent, CodegenClassScope classScope)
public static boolean hasAnnotation(Annotation[] annotations, Class<? extends Annotation> annotationClass)
public 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
Copyright © 2005–2021. All rights reserved.