Package net.binis.codegen.compiler.utils
Class ElementUtils
java.lang.Object
net.binis.codegen.compiler.utils.ElementUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddClassAnnotation(Element element, Class<? extends Annotation> annotation, Map<String, Object> attributes) static voidaddClassAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) protected static CGExpressioncalcExpression(TreeMaker maker, Object value) protected static CGExpressionclassIdent(TreeMaker maker, String className) static voidremoveClassAnnotation(Element element, Class<? extends Annotation> annotation) static voidremoveClassAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name) static voidreplaceClassAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value)
-
Constructor Details
-
ElementUtils
public ElementUtils()
-
-
Method Details
-
addClassAnnotation
-
removeClassAnnotation
-
addClassAnnotationAttribute
public static void addClassAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) -
removeClassAnnotationAttribute
public static void removeClassAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name) -
replaceClassAnnotationAttribute
public static void replaceClassAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) -
calcExpression
-
classIdent
-