FileDocCategorySizeDatePackage
Frame.javaAPI DocJava SE 5 API4555Fri Aug 26 14:55:26 BST 2005com.sun.org.apache.bcel.internal.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.
version
$Id: Frame.java,v 1.1.1.1 2001/10/29 20:00:39 jvanzyl Exp $
author
Enver Haase

Fields Summary
protected static UninitializedObjectType
_this
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.
private LocalVariables
locals
private OperandStack
stack
Constructors Summary
public Frame(int maxLocals, int maxStack)

		locals = new LocalVariables(maxLocals);
		stack = new OperandStack(maxStack);
	
public Frame(LocalVariables locals, OperandStack stack)

		this.locals = locals;
		this.stack = stack;
	
Methods Summary
protected java.lang.Objectclone()

		Frame f = new Frame(locals.getClone(), stack.getClone());
		return f;
	
public booleanequals(java.lang.Object o)

		if (!(o instanceof Frame)) return false; // implies "null" is non-equal.
		Frame f = (Frame) o;
		return this.stack.equals(f.stack) && this.locals.equals(f.locals);
	
public com.sun.org.apache.bcel.internal.verifier.structurals.FramegetClone()

		return (Frame) clone();
	
public LocalVariablesgetLocals()

		return locals;
	
public OperandStackgetStack()

		return stack;
	
public java.lang.StringtoString()
Returns a String representation of the Frame instance.

		String s="Local Variables:\n";
		s += locals;
		s += "OperandStack:\n";
		s += stack;
		return s;