类 ElementValuesEditor
java.lang.Object
proguard.classfile.editor.ElementValuesEditor
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. -
方法概要
修饰符和类型方法说明voidaddElementValue(ElementValue elementValue) Adds the given elementValue to the target.voiddeleteElementValue(String elementValueMethodName) Deletes the given elementValue to the target.
-
构造器详细资料
-
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
Adds the given elementValue to the target. -
deleteElementValue
Deletes the given elementValue to the target.
-