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 CGAnnotationaddClassAnnotation(Element element, Class<? extends Annotation> annotation, Map<String, Object> attributes) static voidaddClassAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) static CGAnnotationaddMethodAnnotation(Element element, Class<? extends Annotation> annotation, Map<String, Object> attributes) static voidaddMethodAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) static CGAnnotationaddOrReplaceClassAnnotation(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 CGAnnotationfindClassAnnotation(Element element, Class<? extends Annotation> annotation) static CGAnnotationfindMethodAnnotation(Element element, Class<? extends Annotation> annotation) static CGAnnotationremoveClassAnnotation(Element element, Class<? extends Annotation> annotation) static voidremoveClassAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name) static CGAnnotationremoveMethodAnnotation(Element element, Class<? extends Annotation> annotation) static voidremoveMethodAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name) static voidreplaceClassAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) static voidreplaceMethodAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value)
-
Constructor Details
-
ElementUtils
public ElementUtils()
-
-
Method Details
-
findClassAnnotation
public static CGAnnotation findClassAnnotation(Element element, Class<? extends Annotation> annotation) -
addClassAnnotation
public static CGAnnotation addClassAnnotation(Element element, Class<? extends Annotation> annotation, Map<String, Object> attributes) -
addOrReplaceClassAnnotation
public static CGAnnotation addOrReplaceClassAnnotation(Element element, Class<? extends Annotation> annotation, Map<String, Object> attributes) -
removeClassAnnotation
public static CGAnnotation removeClassAnnotation(Element element, Class<? extends Annotation> annotation) -
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) -
addMethodAnnotation
public static CGAnnotation addMethodAnnotation(Element element, Class<? extends Annotation> annotation, Map<String, Object> attributes) -
removeMethodAnnotation
public static CGAnnotation removeMethodAnnotation(Element element, Class<? extends Annotation> annotation) -
addMethodAnnotationAttribute
public static void addMethodAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) -
removeMethodAnnotationAttribute
public static void removeMethodAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name) -
replaceMethodAnnotationAttribute
public static void replaceMethodAnnotationAttribute(Element element, Class<? extends Annotation> annotation, String name, Object value) -
findMethodAnnotation
public static CGAnnotation findMethodAnnotation(Element element, Class<? extends Annotation> annotation) -
calcExpression
-
classIdent
-