Package net.binis.codegen.compiler.utils
Class ElementAnnotationUtils
java.lang.Object
net.binis.codegen.compiler.utils.ElementUtils
net.binis.codegen.compiler.utils.ElementAnnotationUtils
-
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, 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) protected static CGExpressioncalcExpression(TreeMaker maker, Object value) protected static CGExpressionclassIdent(TreeMaker maker, String className) 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 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
chainDots, chainDots, chainDots, chainDotsString, getDeclaration, getDeclaration, getSymbolFullName, selfType, toType
-
Constructor Details
-
ElementAnnotationUtils
public ElementAnnotationUtils()
-
-
Method Details
-
findAnnotation
-
findAnnotation
-
findAnnotations
-
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) -
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) -
replaceAnnotation
public static CGAnnotation replaceAnnotation(Element element, CGAnnotation oldAnnotation, Class<? extends Annotation> annotation, Map<String, Object> 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) -
calcExpression
-
classIdent
-