Class Frame

java.lang.Object
org.apache.bcel.verifier.structurals.Frame

public class Frame extends Object
This class represents a JVM execution frame; that means, a local variable array and an operand stack.
  • Field Details

    • _this

      Deprecated.
      Use the getter/setter to access the field as it may be made private in a later release
      For instance initialization methods, it is important to remember which instance it is that is not initialized yet. It will be initialized invoking another constructor later. NULL means the instance already *is* initialized.
  • Constructor Details

    • Frame

      public Frame(int maxLocals, int maxStack)
      Constructs a Frame.
      Parameters:
      maxLocals - the maximum number of local variables.
      maxStack - the maximum stack size.
    • Frame

      public Frame(LocalVariables locals, OperandStack stack)
      Constructs a Frame.
      Parameters:
      locals - the local variables.
      stack - the operand stack.
  • Method Details

    • getThis

      Gets the static _this reference.
      Returns:
      the _this.
      Since:
      6.0
    • setThis

      public static void setThis(UninitializedObjectType _this)
      Sets the static _this reference.
      Parameters:
      _this - the _this to set.
      Since:
      6.0
    • clone

      protected Object clone()
      Creates a clone of this frame.
      Overrides:
      clone in class Object
      Returns:
      a clone of this frame.
    • equals

      public boolean equals(Object o)
      Checks if this frame equals another object.
      Overrides:
      equals in class Object
      Parameters:
      o - the object to compare.
      Returns:
      true if equal, false otherwise.
    • getClone

      public Frame getClone()
      Gets a clone of this frame.
      Returns:
      a clone of this frame.
    • getLocals

      Gets the local variables.
      Returns:
      the local variables.
    • getStack

      Gets the operand stack.
      Returns:
      the operand stack.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for the object.
    • toString

      public String toString()
      Returns a String representation of the Frame instance.
      Overrides:
      toString in class Object