|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.editor.ElementValuesEditor
public class 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.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
void |
addElementValue(ElementValue elementValue)
Adds the given elementValue to the target. |
void |
deleteElementValue(java.lang.String elementValueMethodName)
Deletes the given elementValue to the target. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementValuesEditor(ProgramClass targetClass,
Annotation targetAnnotation,
boolean replaceElementValues)
public ElementValuesEditor(ProgramClass targetClass,
ArrayElementValue targetArrayElementValue,
boolean replaceElementValues)
| Method Detail |
|---|
public void addElementValue(ElementValue elementValue)
public void deleteElementValue(java.lang.String elementValueMethodName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||