|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.editor.ClassEditor
public class ClassEditor
This class can add interfaces and class members to a given class. Elements to be added must be filled out beforehand, including their references to the constant pool.
| Constructor Summary | |
|---|---|
ClassEditor(ProgramClass targetClass)
Creates a new ClassEditor that will edit elements in the given target class. |
|
| Method Summary | |
|---|---|
void |
addField(Field field)
Adds the given field. |
void |
addInterface(int interfaceConstantIndex)
Adds the given interface. |
void |
addMethod(Method method)
Adds the given method. |
void |
removeField(Field field)
Removes the given field. |
void |
removeInterface(int interfaceConstantIndex)
Removes the given interface. |
void |
removeMethod(Method method)
Removes the given method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassEditor(ProgramClass targetClass)
| Method Detail |
|---|
public void addInterface(int interfaceConstantIndex)
public void removeInterface(int interfaceConstantIndex)
public void addField(Field field)
public void removeField(Field field)
public void addMethod(Method method)
public void removeMethod(Method method)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||