类 VariableEditor

java.lang.Object
proguard.classfile.editor.VariableEditor
所有已实现的接口:
AttributeVisitor

public class VariableEditor extends Object implements AttributeVisitor
This AttributeVisitor accumulates specified changes to local variables, and then applies these accumulated changes to the code attributes that it visits.
  • 构造器详细资料

    • VariableEditor

      public VariableEditor()
  • 方法详细资料

    • reset

      public void reset(int maxLocals)
      Resets the accumulated code changes.
      参数:
      maxLocals - the length of the local variable frame that will be edited next.
    • deleteVariable

      public void deleteVariable(int variableIndex)
      Remembers to delete the given variable.
      参数:
      variableIndex - the index of the variable to be deleted.
    • isDeleted

      public boolean isDeleted(int instructionOffset)
      Returns whether the given variable at the given offset will be deleted.
    • visitAnyAttribute

      public void visitAnyAttribute(Clazz clazz, Attribute attribute)
      从接口复制的说明: AttributeVisitor
      Visits any Attribute instance. The more specific default implementations of this interface delegate to this method.
      指定者:
      visitAnyAttribute 在接口中 AttributeVisitor
    • visitCodeAttribute

      public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute)
      指定者:
      visitCodeAttribute 在接口中 AttributeVisitor