Package io.quarkus.arc.processor
Class Transformation
java.lang.Object
io.quarkus.arc.processor.Transformation
- All Implemented Interfaces:
AnnotationsTransformation<Transformation>
Represents a transformation of an annotation target.
The transformation is not applied until the AnnotationsTransformation.done() method is invoked.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTransformation(Collection<org.jboss.jandex.AnnotationInstance> annotations, org.jboss.jandex.AnnotationTarget target, Consumer<Collection<org.jboss.jandex.AnnotationInstance>> transformationConsumer) -
Method Summary
Modifier and TypeMethodDescriptionadd(Class<? extends Annotation> annotationType, org.jboss.jandex.AnnotationValue... values) NOTE: The annotation target is derived from the transformation context.add(org.jboss.jandex.AnnotationInstance annotation) add(org.jboss.jandex.DotName name, org.jboss.jandex.AnnotationValue... values) NOTE: The annotation target is derived from the transformation context..addAll(Collection<org.jboss.jandex.AnnotationInstance> annotations) addAll(org.jboss.jandex.AnnotationInstance... annotations) voiddone()Applies the transformation.Remove all annotations matching the given predicate.Remove all annotations.protected Transformationself()
-
Field Details
-
modifiedAnnotations
-
-
Constructor Details
-
Transformation
public Transformation(Collection<org.jboss.jandex.AnnotationInstance> annotations, org.jboss.jandex.AnnotationTarget target, Consumer<Collection<org.jboss.jandex.AnnotationInstance>> transformationConsumer)
-
-
Method Details
-
self
-
add
- Specified by:
addin interfaceAnnotationsTransformation<T extends AnnotationsTransformation<T>>- Returns:
- self
-
addAll
- Specified by:
addAllin interfaceAnnotationsTransformation<T extends AnnotationsTransformation<T>>- Returns:
- self
-
addAll
- Specified by:
addAllin interfaceAnnotationsTransformation<T extends AnnotationsTransformation<T>>- Returns:
- self
-
add
public Transformation add(Class<? extends Annotation> annotationType, org.jboss.jandex.AnnotationValue... values) Description copied from interface:AnnotationsTransformationNOTE: The annotation target is derived from the transformation context. If you need to add an annotation instance to a method parameter use methods consumingAnnotationInstancedirectly and supply the correctMethodParameterInfo.- Specified by:
addin interfaceAnnotationsTransformation<T extends AnnotationsTransformation<T>>- Returns:
- self
-
add
public Transformation add(org.jboss.jandex.DotName name, org.jboss.jandex.AnnotationValue... values) Description copied from interface:AnnotationsTransformationNOTE: The annotation target is derived from the transformation context.. If you need to add an annotation instance to a method parameter use methods consumingAnnotationInstancedirectly and supply the correctMethodParameterInfo.- Specified by:
addin interfaceAnnotationsTransformation<T extends AnnotationsTransformation<T>>- Returns:
- self
-
remove
Description copied from interface:AnnotationsTransformationRemove all annotations matching the given predicate.- Specified by:
removein interfaceAnnotationsTransformation<T extends AnnotationsTransformation<T>>- Returns:
- self
-
removeAll
Description copied from interface:AnnotationsTransformationRemove all annotations.- Specified by:
removeAllin interfaceAnnotationsTransformation<T extends AnnotationsTransformation<T>>- Returns:
- self
-
done
public void done()Description copied from interface:AnnotationsTransformationApplies the transformation.- Specified by:
donein interfaceAnnotationsTransformation<T extends AnnotationsTransformation<T>>
-