Interface AnnotationsTransformer.TransformationContext

All Superinterfaces:
BuildExtension.BuildContext
Enclosing interface:
AnnotationsTransformer

public static interface AnnotationsTransformer.TransformationContext extends BuildExtension.BuildContext
A transformation context.
  • 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() and MethodInfo.annotations() respectively.

      Returns:
      the annotation instances
    • transform

      Transformation transform()
      The transformation is not applied until the Transformation.done() method is invoked.
      Returns:
      a new transformation
    • isClass

      default boolean isClass()
    • isField

      default boolean isField()
    • isMethod

      default boolean isMethod()