Package io.quarkus.arc.processor
Interface AnnotationsTransformer.TransformationContext
- All Superinterfaces:
BuildExtension.BuildContext
- Enclosing interface:
- AnnotationsTransformer
public static interface AnnotationsTransformer.TransformationContext
extends BuildExtension.BuildContext
A transformation context.
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.jboss.jandex.AnnotationInstance>Returns the current set of annotations.org.jboss.jandex.AnnotationTargetReturns the annotated class, method or field.default booleanisClass()default booleanisField()default booleanisMethod()The transformation is not applied until theAnnotationsTransformation.done()method is invoked.Methods inherited from interface io.quarkus.arc.processor.BuildExtension.BuildContext
get, put
-
Method Details
-
getTarget
org.jboss.jandex.AnnotationTarget getTarget()Returns the annotated class, method or field.- Returns:
- the annotation target
-
getAnnotations
Collection<org.jboss.jandex.AnnotationInstance> getAnnotations()Returns the current set of annotations.The initial set of annotations instances corresponds to
ClassInfo.classAnnotations(),FieldInfo.annotations()andMethodInfo.annotations()respectively.- Returns:
- the annotation instances
-
transform
Transformation transform()The transformation is not applied until theAnnotationsTransformation.done()method is invoked.- Returns:
- a new transformation
-
isClass
default boolean isClass() -
isField
default boolean isField() -
isMethod
default boolean isMethod()
-