Class Frame
- java.lang.Object
-
- org.apache.bcel.verifier.structurals.Frame
-
public class Frame extends java.lang.ObjectThis class represents a JVM execution frame; that means, a local variable array and an operand stack.
-
-
Field Summary
Fields Modifier and Type Field Description protected static UninitializedObjectType_thisDeprecated.Use the getter/setter to access the field as it may be made private in a later releaseprivate LocalVariableslocalsThe local variables.private OperandStackstackThe operand stack.
-
Constructor Summary
Constructors Constructor Description Frame(int maxLocals, int maxStack)Constructs a Frame.Frame(LocalVariables locals, OperandStack stack)Constructs a Frame.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objectclone()Creates a clone of this frame.booleanequals(java.lang.Object o)Checks if this frame equals another object.FramegetClone()Gets a clone of this frame.LocalVariablesgetLocals()Gets the local variables.OperandStackgetStack()Gets the operand stack.static UninitializedObjectTypegetThis()Gets the static _this reference.inthashCode()static voidsetThis(UninitializedObjectType _this)Sets the static _this reference.java.lang.StringtoString()Returns a String representation of the Frame instance.
-
-
-
Field Detail
-
_this
@Deprecated protected static UninitializedObjectType _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.
-
locals
private final LocalVariables locals
The local variables.
-
stack
private final OperandStack stack
The operand stack.
-
-
Constructor Detail
-
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 Detail
-
getThis
public static UninitializedObjectType 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 java.lang.Object clone()
Creates a clone of this frame.- Overrides:
clonein classjava.lang.Object- Returns:
- a clone of this frame.
-
equals
public boolean equals(java.lang.Object o)
Checks if this frame equals another object.- Overrides:
equalsin classjava.lang.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
public LocalVariables getLocals()
Gets the local variables.- Returns:
- the local variables.
-
getStack
public OperandStack getStack()
Gets the operand stack.- Returns:
- the operand stack.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- Returns:
- a hash code value for the object.
-
toString
public java.lang.String toString()
Returns a String representation of the Frame instance.- Overrides:
toStringin classjava.lang.Object
-
-