Class ParameterAnnotationsAttributeEditor


  • public class ParameterAnnotationsAttributeEditor
    extends java.lang.Object
    This class can add annotations to a given parameter annotations attribute. Annotations to be added must have been filled out beforehand.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAnnotation​(int parameterIndex, Annotation annotation)
      Adds a given annotation to the annotations attribute.
      void deleteAnnotation​(int parameterIndex, int annotationIndex)
      Deletes the annotation at the given index from the annotations attribute.
      void deleteAnnotation​(int parameterIndex, Annotation annotation)
      Deletes a given annotation from the annotations attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParameterAnnotationsAttributeEditor

        public ParameterAnnotationsAttributeEditor​(ParameterAnnotationsAttribute targetParameterAnnotationsAttribute)
        Creates a new ParameterAnnotationsAttributeEditor that will edit annotations in the given parameter annotations attribute.
    • Method Detail

      • addAnnotation

        public void addAnnotation​(int parameterIndex,
                                  Annotation annotation)
        Adds a given annotation to the annotations attribute.
      • deleteAnnotation

        public void deleteAnnotation​(int parameterIndex,
                                     Annotation annotation)
        Deletes a given annotation from the annotations attribute.
      • deleteAnnotation

        public void deleteAnnotation​(int parameterIndex,
                                     int annotationIndex)
        Deletes the annotation at the given index from the annotations attribute.