|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.util.SimplifiedVisitor
proguard.classfile.editor.VariableEditor
public class VariableEditor
This AttributeVisitor accumulates specified changes to local variables, and then applies these accumulated changes to the code attributes that it visits.
| Constructor Summary | |
|---|---|
VariableEditor()
|
|
| Method Summary | |
|---|---|
void |
deleteVariable(int variableIndex)
Remembers to delete the given variable. |
boolean |
isDeleted(int instructionOffset)
Returns whether the given variable at the given offset has deleted. |
void |
reset(int maxLocals)
Resets the accumulated code changes. |
void |
visitAnyAttribute(Clazz clazz,
Attribute attribute)
Visit any type of attribute. |
void |
visitCodeAttribute(Clazz clazz,
Method method,
CodeAttribute codeAttribute)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VariableEditor()
| Method Detail |
|---|
public void reset(int maxLocals)
maxLocals - the length of the local variable frame that will be
edited next.public void deleteVariable(int variableIndex)
variableIndex - the index of the variable to be deleted.public boolean isDeleted(int instructionOffset)
public void visitAnyAttribute(Clazz clazz,
Attribute attribute)
SimplifiedVisitor
visitAnyAttribute in class SimplifiedVisitor
public void visitCodeAttribute(Clazz clazz,
Method method,
CodeAttribute codeAttribute)
visitCodeAttribute in interface AttributeVisitorvisitCodeAttribute in class SimplifiedVisitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||