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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Collection<org.jboss.jandex.AnnotationInstance>getAnnotations()Returns the current set of annotations.org.jboss.jandex.AnnotationTargetgetTarget()Returns the annotated class, method or field.default booleanisClass()default booleanisField()default booleanisMethod()Transformationtransform()The transformation is not applied until theAnnotationsTransformation.done()method is invoked.-
Methods inherited from interface io.quarkus.arc.processor.BuildExtension.BuildContext
get, put
-
-
-
-
Method Detail
-
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()
-
-