类 ElementValuesEditor


  • public class ElementValuesEditor
    extends java.lang.Object
    This class can add and delete element values to and from a given target annotation default attribute, annotation, or array element value. Element values to be added must be filled out beforehand, including their references to the constant pool.
    • 构造器概要

      构造器 
      构造器 说明
      ElementValuesEditor​(ProgramClass targetClass, Annotation targetAnnotation, boolean replaceElementValues)
      Creates a new ElementValuesEditor that will edit element values in the given target annotation.
      ElementValuesEditor​(ProgramClass targetClass, ArrayElementValue targetArrayElementValue, boolean replaceElementValues)
      Creates a new ElementValuesEditor that will edit element values in the given target array element value.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void addElementValue​(ElementValue elementValue)
      Adds the given elementValue to the target.
      void deleteElementValue​(java.lang.String elementValueMethodName)
      Deletes the given elementValue to the target.
      • 从类继承的方法 java.lang.Object

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

      • ElementValuesEditor

        public ElementValuesEditor​(ProgramClass targetClass,
                                   Annotation targetAnnotation,
                                   boolean replaceElementValues)
        Creates a new ElementValuesEditor that will edit element values in the given target annotation.
      • ElementValuesEditor

        public ElementValuesEditor​(ProgramClass targetClass,
                                   ArrayElementValue targetArrayElementValue,
                                   boolean replaceElementValues)
        Creates a new ElementValuesEditor that will edit element values in the given target array element value.
    • 方法详细资料

      • addElementValue

        public void addElementValue​(ElementValue elementValue)
        Adds the given elementValue to the target.
      • deleteElementValue

        public void deleteElementValue​(java.lang.String elementValueMethodName)
        Deletes the given elementValue to the target.