类 AnnotationsAttributeEditor


  • public class AnnotationsAttributeEditor
    extends java.lang.Object
    This class can add annotations to a given annotations attribute. Annotations to be added must have been filled out beforehand.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void addAnnotation​(Annotation annotation)
      Adds a given annotation to the annotations attribute.
      void deleteAnnotation​(int index)
      Deletes the annotation at the given idnex from the annotations attribute.
      void deleteAnnotation​(Annotation annotation)
      Deletes a given annotation from the annotations attribute.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • AnnotationsAttributeEditor

        public AnnotationsAttributeEditor​(AnnotationsAttribute targetAnnotationsAttribute)
        Creates a new AnnotationsAttributeEditor that will edit annotations in the given annotations attribute.
    • 方法详细资料

      • addAnnotation

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

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

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