Interface AnnotationsTransformation<T extends AnnotationsTransformation<T>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T add​(Class<? extends Annotation> annotationType, org.jboss.jandex.AnnotationValue... values)
      NOTE: The annotation target is derived from the transformation context.
      T add​(org.jboss.jandex.AnnotationInstance annotation)  
      T add​(org.jboss.jandex.DotName name, org.jboss.jandex.AnnotationValue... values)
      NOTE: The annotation target is derived from the transformation context..
      T addAll​(Collection<org.jboss.jandex.AnnotationInstance> annotations)  
      T addAll​(org.jboss.jandex.AnnotationInstance... annotations)  
      void done()
      Applies the transformation.
      T remove​(Predicate<org.jboss.jandex.AnnotationInstance> predicate)
      Remove all annotations matching the given predicate.
      T removeAll()
      Remove all annotations.
    • Method Detail

      • add

        T add​(org.jboss.jandex.AnnotationInstance annotation)
        Parameters:
        annotation -
        Returns:
        self
      • addAll

        T addAll​(Collection<org.jboss.jandex.AnnotationInstance> annotations)
        Parameters:
        annotations -
        Returns:
        self
      • addAll

        T addAll​(org.jboss.jandex.AnnotationInstance... annotations)
        Parameters:
        annotations -
        Returns:
        self
      • add

        T add​(Class<? extends Annotation> annotationType,
              org.jboss.jandex.AnnotationValue... values)
        NOTE: The annotation target is derived from the transformation context. If you need to add an annotation instance to a method parameter use methods consuming AnnotationInstance directly and supply the correct MethodParameterInfo.
        Parameters:
        annotationType -
        values -
        Returns:
        self
      • add

        T add​(org.jboss.jandex.DotName name,
              org.jboss.jandex.AnnotationValue... values)
        NOTE: The annotation target is derived from the transformation context.. If you need to add an annotation instance to a method parameter use methods consuming AnnotationInstance directly and supply the correct MethodParameterInfo.
        Parameters:
        name -
        values -
        Returns:
        self
      • remove

        T remove​(Predicate<org.jboss.jandex.AnnotationInstance> predicate)
        Remove all annotations matching the given predicate.
        Parameters:
        predicate -
        Returns:
        self
      • removeAll

        T removeAll()
        Remove all annotations.
        Returns:
        self
      • done

        void done()
        Applies the transformation.