Uses of Interface
spoon.reflect.declaration.CtAnnotation
Packages that use CtAnnotation
Package
Description
This package contains the core API for code processing.
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines all the sub-factories for the Spoon meta-model.
This package defines the references to program elements for the meta-model.
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains some default implementations for commonly used processing tasks.
-
Uses of CtAnnotation in spoon.processing
Methods in spoon.processing with parameters of type CtAnnotationModifier and TypeMethodDescriptionbooleanAbstractAnnotationProcessor.shoudBeConsumed(CtAnnotation<? extends Annotation> annotation)Returns true if this annotation should be removed from the processed code.booleanAnnotationProcessor.shoudBeConsumed(CtAnnotation<? extends Annotation> annotation)Returns true if this annotation should be removed from the processed code. -
Uses of CtAnnotation in spoon.reflect.declaration
Methods in spoon.reflect.declaration with type parameters of type CtAnnotationModifier and TypeMethodDescription<T extends CtAnnotation<A>>
TAdds a new key-value pair for this annotation<T extends CtAnnotation<A>>
TCtAnnotation.addValue(String elementName, CtFieldAccess<?> value)Adds a new key-field access pair for this annotation.<T extends CtAnnotation<A>>
TAdds a new key-literal pair for this annotation.<T extends CtAnnotation<A>>
TCtAnnotation.addValue(String elementName, CtNewArray<? extends CtExpression> value)Adds a new key-array pair for this annotation.<T extends CtAnnotation<A>>
TCtAnnotation.addValue(String elementName, CtAnnotation<?> value)Adds a new key-annotation pair for this annotation.<T extends CtAnnotation<A>>
TCtAnnotation.setAnnotationType(CtTypeReference<? extends Annotation> type)Sets the annotation's type.<T extends CtAnnotation<A>>
TCtAnnotation.setElementValues(Map<String,Object> values)Set's this annotation's element names and their values.<T extends CtAnnotation<A>>
TCtAnnotation.setValues(Map<String,CtExpression> values)Set's this annotation's element names and their values.Methods in spoon.reflect.declaration that return CtAnnotationModifier and TypeMethodDescriptionCtAnnotation.clone()<A extends Annotation>
CtAnnotation<A>CtElement.getAnnotation(CtTypeReference<A> annotationType)Gets the annotation element for a given annotation type.Methods in spoon.reflect.declaration that return types with arguments of type CtAnnotationModifier and TypeMethodDescriptionList<CtAnnotation<? extends Annotation>>CtElement.getAnnotations()Returns the annotations that are present on this element.Methods in spoon.reflect.declaration with parameters of type CtAnnotationModifier and TypeMethodDescription<E extends CtElement>
ECtElement.addAnnotation(CtAnnotation<? extends Annotation> annotation)Add an annotation for this element<T extends CtAnnotation<A>>
TCtAnnotation.addValue(String elementName, CtAnnotation<?> value)Adds a new key-annotation pair for this annotation.booleanCtElement.removeAnnotation(CtAnnotation<? extends Annotation> annotation)Remove an annotation for this elementMethod parameters in spoon.reflect.declaration with type arguments of type CtAnnotationModifier and TypeMethodDescription<E extends CtElement>
ECtElement.setAnnotations(List<CtAnnotation<? extends Annotation>> annotation)Sets the annotations for this element. -
Uses of CtAnnotation in spoon.reflect.factory
Methods in spoon.reflect.factory that return CtAnnotationModifier and TypeMethodDescription<A extends Annotation>
CtAnnotation<A>Adds an annotation to an element.<A extends Annotation>
CtAnnotation<A>AnnotationFactory.annotate(CtElement element, Class<A> annotationType, String annotationElementName, Object value)Creates/updates an element's annotation value.<A extends Annotation>
CtAnnotation<A>AnnotationFactory.annotate(CtElement element, CtTypeReference<A> annotationType)Adds an annotation to an element.<A extends Annotation>
CtAnnotation<A>AnnotationFactory.annotate(CtElement element, CtTypeReference<A> annotationType, String annotationElementName, Object value)Creates/updates an element's annotation value.<A extends Annotation>
CtAnnotation<A>CodeFactory.createAnnotation(CtTypeReference<A> annotationType)Creates an annotation.<A extends Annotation>
CtAnnotation<A>CoreFactory.createAnnotation()Creates an annotation.<A extends Annotation>
CtAnnotation<A>Factory.createAnnotation()<A extends Annotation>
CtAnnotation<A>Factory.createAnnotation(CtTypeReference<A> annotationType)<A extends Annotation>
CtAnnotation<A>FactoryImpl.createAnnotation()<A extends Annotation>
CtAnnotation<A>FactoryImpl.createAnnotation(CtTypeReference<A> annotationType) -
Uses of CtAnnotation in spoon.reflect.reference
Methods in spoon.reflect.reference that return types with arguments of type CtAnnotationModifier and TypeMethodDescriptionList<CtAnnotation<? extends Annotation>>CtTypeMemberWildcardImportReference.getAnnotations()Methods in spoon.reflect.reference with parameters of type CtAnnotationModifier and TypeMethodDescription<E extends CtElement>
ECtTypeMemberWildcardImportReference.addAnnotation(CtAnnotation<? extends Annotation> annotation)booleanCtTypeMemberWildcardImportReference.removeAnnotation(CtAnnotation<? extends Annotation> annotation)Method parameters in spoon.reflect.reference with type arguments of type CtAnnotationModifier and TypeMethodDescription<E extends CtElement>
ECtTypeMemberWildcardImportReference.setAnnotations(List<CtAnnotation<? extends Annotation>> annotation)<E extends CtElement>
ECtUnboundVariableReference.setAnnotations(List<CtAnnotation<? extends Annotation>> annotation) -
Uses of CtAnnotation in spoon.reflect.visitor
Methods in spoon.reflect.visitor with parameters of type CtAnnotationModifier and TypeMethodDescription<A extends Annotation>
voidCtAbstractVisitor.visitCtAnnotation(CtAnnotation<A> annotation)<A extends Annotation>
voidCtBiScannerDefault.visitCtAnnotation(CtAnnotation<A> annotation)<A extends Annotation>
voidCtInheritanceScanner.visitCtAnnotation(CtAnnotation<A> e)<A extends Annotation>
voidCtScanner.visitCtAnnotation(CtAnnotation<A> annotation)<A extends Annotation>
voidCtVisitor.visitCtAnnotation(CtAnnotation<A> annotation)Visits an annotation.<A extends Annotation>
voidDefaultJavaPrettyPrinter.visitCtAnnotation(CtAnnotation<A> annotation) -
Uses of CtAnnotation in spoon.support
Methods in spoon.support that return CtAnnotationModifier and TypeMethodDescription<A extends Annotation>
CtAnnotation<A>DefaultCoreFactory.createAnnotation() -
Uses of CtAnnotation in spoon.support.compiler.jdt
Methods in spoon.support.compiler.jdt with parameters of type CtAnnotationModifier and TypeMethodDescription<A extends Annotation>
voidParentExiter.visitCtAnnotation(CtAnnotation<A> annotation) -
Uses of CtAnnotation in spoon.support.reflect.declaration
Classes in spoon.support.reflect.declaration that implement CtAnnotationModifier and TypeClassDescriptionclassCtAnnotationImpl<A extends Annotation>The implementation forCtAnnotation.Methods in spoon.support.reflect.declaration with type parameters of type CtAnnotationModifier and TypeMethodDescription<T extends CtAnnotation<A>>
T<T extends CtAnnotation<A>>
TCtAnnotationImpl.addValue(String elementName, CtFieldAccess<?> value)<T extends CtAnnotation<A>>
T<T extends CtAnnotation<A>>
TCtAnnotationImpl.addValue(String elementName, CtNewArray<? extends CtExpression> value)<T extends CtAnnotation<A>>
TCtAnnotationImpl.addValue(String elementName, CtAnnotation<?> value)<T extends CtAnnotation<A>>
TCtAnnotationImpl.setAnnotationType(CtTypeReference<? extends Annotation> annotationType)<T extends CtAnnotation<A>>
TCtAnnotationImpl.setElementValues(Map<String,Object> values)<T extends CtAnnotation<A>>
TCtAnnotationImpl.setValues(Map<String,CtExpression> values)Methods in spoon.support.reflect.declaration that return CtAnnotationModifier and TypeMethodDescriptionCtAnnotationImpl.clone()<A extends Annotation>
CtAnnotation<A>CtElementImpl.getAnnotation(CtTypeReference<A> annotationType)Methods in spoon.support.reflect.declaration that return types with arguments of type CtAnnotationModifier and TypeMethodDescriptionList<CtAnnotation<? extends Annotation>>CtElementImpl.getAnnotations()Methods in spoon.support.reflect.declaration with parameters of type CtAnnotationModifier and TypeMethodDescription<E extends CtElement>
ECtElementImpl.addAnnotation(CtAnnotation<? extends Annotation> annotation)<T extends CtAnnotation<A>>
TCtAnnotationImpl.addValue(String elementName, CtAnnotation<?> value)booleanCtElementImpl.removeAnnotation(CtAnnotation<? extends Annotation> annotation)Method parameters in spoon.support.reflect.declaration with type arguments of type CtAnnotationModifier and TypeMethodDescription<E extends CtElement>
ECtElementImpl.setAnnotations(List<CtAnnotation<? extends Annotation>> annotations) -
Uses of CtAnnotation in spoon.support.reflect.reference
Methods in spoon.support.reflect.reference that return types with arguments of type CtAnnotationModifier and TypeMethodDescriptionList<CtAnnotation<? extends Annotation>>CtTypeMemberWildcardImportReferenceImpl.getAnnotations()List<CtAnnotation<? extends Annotation>>CtUnboundVariableReferenceImpl.getAnnotations()Methods in spoon.support.reflect.reference with parameters of type CtAnnotationModifier and TypeMethodDescription<E extends CtElement>
ECtTypeMemberWildcardImportReferenceImpl.addAnnotation(CtAnnotation<? extends Annotation> annotation)booleanCtTypeMemberWildcardImportReferenceImpl.removeAnnotation(CtAnnotation<? extends Annotation> annotation)Method parameters in spoon.support.reflect.reference with type arguments of type CtAnnotationModifier and TypeMethodDescription<E extends CtElement>
ECtTypeMemberWildcardImportReferenceImpl.setAnnotations(List<CtAnnotation<? extends Annotation>> annotations)<E extends CtElement>
ECtUnboundVariableReferenceImpl.setAnnotations(List<CtAnnotation<? extends Annotation>> annotations) -
Uses of CtAnnotation in spoon.support.visitor.clone
Methods in spoon.support.visitor.clone with parameters of type CtAnnotationModifier and TypeMethodDescription<A extends Annotation>
voidCloneBuilder.visitCtAnnotation(CtAnnotation<A> e)<A extends Annotation>
voidCloneVisitor.visitCtAnnotation(CtAnnotation<A> annotation) -
Uses of CtAnnotation in spoon.support.visitor.java.internal
Methods in spoon.support.visitor.java.internal that return CtAnnotationMethods in spoon.support.visitor.java.internal with parameters of type CtAnnotationModifier and TypeMethodDescriptionvoidAnnotationRuntimeBuilderContext.addAnnotation(CtAnnotation<Annotation> ctAnnotation)voidExecutableRuntimeBuilderContext.addAnnotation(CtAnnotation<Annotation> ctAnnotation)voidPackageRuntimeBuilderContext.addAnnotation(CtAnnotation<Annotation> ctAnnotation)voidRecordComponentRuntimeBuilderContext.addAnnotation(CtAnnotation<Annotation> ctAnnotation)voidRuntimeBuilderContext.addAnnotation(CtAnnotation<Annotation> ctAnnotation)voidTypeReferenceRuntimeBuilderContext.addAnnotation(CtAnnotation<Annotation> ctAnnotation)voidTypeRuntimeBuilderContext.addAnnotation(CtAnnotation<Annotation> ctAnnotation)voidVariableRuntimeBuilderContext.addAnnotation(CtAnnotation<Annotation> ctAnnotation)Constructors in spoon.support.visitor.java.internal with parameters of type CtAnnotationModifierConstructorDescriptionAnnotationRuntimeBuilderContext(CtAnnotation<Annotation> ctAnnotation) -
Uses of CtAnnotation in spoon.support.visitor.replace
Methods in spoon.support.visitor.replace with parameters of type CtAnnotationModifier and TypeMethodDescription<A extends Annotation>
voidReplacementVisitor.visitCtAnnotation(CtAnnotation<A> annotation)