public class ClassEditor
extends java.lang.Object
Constructor and Description |
---|
ClassEditor(ProgramClass targetClass)
Creates a new ClassEditor that will edit elements in the given target class.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ClassEditor(ProgramClass targetClass)
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)