Interface AnnotationsTransformer.TransformationContext
- Enclosing interface:
AnnotationsTransformer
public static interface AnnotationsTransformer.TransformationContext
A transformation context.
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.jboss.jandex.AnnotationInstance> The initial set of annotations instances corresponds toClassInfo.declaredAnnotations(),FieldInfo.annotations()andMethodInfo.annotations()respectively.org.jboss.jandex.AnnotationTargetdefault booleanisClass()default booleanisField()default booleanisMethod()The transformation is not applied until theTransformation.done()method is invoked.
-
Method Details
-
getTarget
org.jboss.jandex.AnnotationTarget getTarget() -
getAnnotations
Collection<org.jboss.jandex.AnnotationInstance> getAnnotations()The initial set of annotations instances corresponds toClassInfo.declaredAnnotations(),FieldInfo.annotations()andMethodInfo.annotations()respectively.- Returns:
- the annotation instances
-
transform
Transformation transform()The transformation is not applied until theTransformation.done()method is invoked.- Returns:
- a new transformation
-
isClass
default boolean isClass() -
isField
default boolean isField() -
isMethod
default boolean isMethod()
-