Package net.binis.codegen.compiler.utils
Class ElementAnnotationUtils
java.lang.Object
net.binis.codegen.compiler.utils.ElementUtils
net.binis.codegen.compiler.utils.ElementAnnotationUtils
-
Field Summary
Fields inherited from class net.binis.codegen.compiler.utils.ElementUtils
CLASS_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CGAnnotationaddAnnotation(Element element, Class<? extends Annotation> annotation) static CGAnnotationaddAnnotation(Element element, Class<? extends Annotation> annotation, Map<String, Object> attributes) static CGAnnotationaddAnnotation(Element element, Class<? extends Annotation> annotation, CGExpression... attributes) static CGAnnotationaddAnnotation(Element element, Class<? extends Annotation> annotation, CGList<CGExpression> attributes) static voidaddAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) static voidaddAnnotationAttribute(Element element, CGAnnotation annotation, String name, Object value) static CGAnnotationaddOrReplaceAnnotation(Element element, Class<? extends Annotation> annotation) static CGAnnotationaddOrReplaceAnnotation(Element element, Class<? extends Annotation> annotation, Map<String, Object> attributes) static CGAnnotationaddOrReplaceAnnotation(Element element, Class<? extends Annotation> annotation, CGExpression... attributes) static CGAnnotationcreateAnnotation(Class<? extends Annotation> annotation, Map<String, Object> attributes) protected static CGList<CGExpression>expressionToList(CGExpression... expressions) static CGAnnotationfindAnnotation(Element element, Class<? extends Annotation> annotation) static CGAnnotationfindAnnotation(Element element, Predicate<CGAnnotation> filter) static List<CGAnnotation>findAnnotations(Element element, Predicate<CGAnnotation> filter) static CGAnnotationremoveAnnotation(Element element, Class<? extends Annotation> annotation) static CGAnnotationremoveAnnotation(Element element, CGAnnotation annotation) static voidremoveAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name) static voidremoveAnnotationAttribute(Element element, CGAnnotation annotation, String name) static CGAnnotationreplaceAnnotation(Element element, CGAnnotation oldAnnotation, Class<? extends Annotation> annotation, Map<String, Object> attributes) static CGAnnotationreplaceAnnotation(Element element, CGAnnotation oldAnnotation, Class<? extends Annotation> annotation, CGExpression... attributes) static voidreplaceAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) static voidreplaceAnnotationAttribute(Element element, CGAnnotation annotation, String name, Object value) static CGAnnotationreplaceAnnotationWithAttributes(Element element, CGAnnotation oldAnnotation, Class<? extends Annotation> annotation) Methods inherited from class net.binis.codegen.compiler.utils.ElementUtils
calcExpression, chainDots, chainDots, chainDots, chainDotsString, chainDotsString, classToExpression, cloneType, createFieldAccess, getDeclaration, getDeclaration, getSymbolFullName, initClassMap, primitiveTypeTag, registerClass, selfType, toType
-
Constructor Details
-
ElementAnnotationUtils
public ElementAnnotationUtils()
-
-
Method Details
-
findAnnotation
-
findAnnotation
-
findAnnotations
-
createAnnotation
public static CGAnnotation createAnnotation(Class<? extends Annotation> annotation, Map<String, Object> attributes) -
addAnnotation
-
addAnnotation
public static CGAnnotation addAnnotation(Element element, Class<? extends Annotation> annotation, Map<String, Object> attributes) -
addAnnotation
public static CGAnnotation addAnnotation(Element element, Class<? extends Annotation> annotation, CGList<CGExpression> attributes) -
addAnnotation
public static CGAnnotation addAnnotation(Element element, Class<? extends Annotation> annotation, CGExpression... attributes) -
addOrReplaceAnnotation
public static CGAnnotation addOrReplaceAnnotation(Element element, Class<? extends Annotation> annotation) -
addOrReplaceAnnotation
public static CGAnnotation addOrReplaceAnnotation(Element element, Class<? extends Annotation> annotation, Map<String, Object> attributes) -
addOrReplaceAnnotation
public static CGAnnotation addOrReplaceAnnotation(Element element, Class<? extends Annotation> annotation, CGExpression... attributes) -
replaceAnnotation
public static CGAnnotation replaceAnnotation(Element element, CGAnnotation oldAnnotation, Class<? extends Annotation> annotation, Map<String, Object> attributes) -
replaceAnnotation
public static CGAnnotation replaceAnnotation(Element element, CGAnnotation oldAnnotation, Class<? extends Annotation> annotation, CGExpression... attributes) -
replaceAnnotationWithAttributes
public static CGAnnotation replaceAnnotationWithAttributes(Element element, CGAnnotation oldAnnotation, Class<? extends Annotation> annotation) -
removeAnnotation
public static CGAnnotation removeAnnotation(Element element, Class<? extends Annotation> annotation) -
removeAnnotation
-
addAnnotationAttribute
public static void addAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) -
addAnnotationAttribute
public static void addAnnotationAttribute(Element element, CGAnnotation annotation, String name, Object value) -
removeAnnotationAttribute
public static void removeAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name) -
removeAnnotationAttribute
-
replaceAnnotationAttribute
public static void replaceAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) -
replaceAnnotationAttribute
public static void replaceAnnotationAttribute(Element element, CGAnnotation annotation, String name, Object value) -
expressionToList
-