Package proguard.classfile.editor
Class InterfacesEditor
java.lang.Object
proguard.classfile.editor.InterfacesEditor
This class can add and delete interfaces to and from classes. References to the constant pool
must be filled out beforehand.
-
Constructor Summary
ConstructorsConstructorDescriptionInterfacesEditor(ProgramClass targetClass) Creates a new InterfacesEditor that will edit interfaces in the given target class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterface(int interfaceConstantIndex) Adds the specified interface to the target class, if it isn't present yet.voiddeleteInterface(int interfaceConstantIndex) Deletes the given interface from the target class, if it is present.
-
Constructor Details
-
InterfacesEditor
Creates a new InterfacesEditor that will edit interfaces in the given target class.
-
-
Method Details
-
addInterface
public void addInterface(int interfaceConstantIndex) Adds the specified interface to the target class, if it isn't present yet. -
deleteInterface
public void deleteInterface(int interfaceConstantIndex) Deletes the given interface from the target class, if it is present.
-