| java.lang.Object spoon.reflect.factory.SubFactory spoon.reflect.factory.TypeFactory spoon.reflect.factory.AnnotationFactory
AnnotationFactory | public AnnotationFactory(Factory factory)(Code) | | Creates an annotation sub-factory.
Parameters: factory - the parent factory |
annotate | public CtAnnotation<A> annotate(CtElement element, CtTypeReference<A> annotationType, String annotationElementName, Object value)(Code) | | Creates/updates an element's annotation value.
Parameters: element - the program element to annotate Parameters: annotationType - the annotation type Parameters: annotationElementName - the annotation element name Parameters: value - the value of the annotation element the created/updated annotation |
annotate | public CtAnnotation<A> annotate(CtElement element, Class<A> annotationType, String annotationElementName, Object value)(Code) | | Creates/updates an element's annotation value.
Parameters: element - the program element to annotate Parameters: annotationType - the annotation type Parameters: annotationElementName - the annotation element name Parameters: value - the value of the annotation element the created/updated annotation |
annotate | public CtAnnotation<A> annotate(CtElement element, CtTypeReference<A> annotationType)(Code) | | Adds an annotation to an element.
Parameters: element - the program element to annotate Parameters: annotationType - the annotation type the concerned annotation |
annotate | public CtAnnotation<A> annotate(CtElement element, Class<A> annotationType)(Code) | | Adds an annotation to an element.
Parameters: element - the program element to annotate Parameters: annotationType - the annotation type the concerned annotation |
create | public CtAnnotationType> create(CtPackage owner, String simpleName)(Code) | | Creates an annotation type.
Parameters: owner - the package of the annotation type Parameters: simpleName - the name of annotation |
create | public CtAnnotationType> create(String qualifiedName)(Code) | | Creates an annotation type.
Parameters: qualifiedName - the fully qualified name of the annotation type. |
|
|