Class Frame
java.lang.Object
org.apache.bcel.verifier.structurals.Frame
This class represents a JVM execution frame; that means, a local variable array and an operand stack.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static UninitializedObjectTypeDeprecated.Use the getter/setter to access the field as it may be made private in a later release -
Constructor Summary
ConstructorsConstructorDescriptionFrame(int maxLocals, int maxStack) Constructs a Frame.Frame(LocalVariables locals, OperandStack stack) Constructs a Frame. -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectclone()Creates a clone of this frame.booleanChecks if this frame equals another object.getClone()Gets a clone of this frame.Gets the local variables.getStack()Gets the operand stack.static UninitializedObjectTypegetThis()Gets the static _this reference.inthashCode()static voidsetThis(UninitializedObjectType _this) Sets the static _this reference.toString()Returns a String representation of the Frame instance.
-
Field Details
-
_this
Deprecated.Use the getter/setter to access the field as it may be made private in a later releaseFor 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
Constructs a Frame.- Parameters:
maxLocals- The maximum number of local variables.maxStack- The maximum stack size.
-
Frame
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
Sets the static _this reference.- Parameters:
_this- The _this to set.- Since:
- 6.0
-
clone
Creates a clone of this frame. -
equals
Checks if this frame equals another object. -
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
-
toString
Returns a String representation of the Frame instance.
-