nl.tudelft.simulation.dsol.interpreter
Class Frame

java.lang.Object
  extended by nl.tudelft.simulation.dsol.interpreter.Frame
All Implemented Interfaces:
Cloneable

public class Frame
extends Object
implements Cloneable

A Frame
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:12 $
Author:
Peter Jacobs

Field Summary
protected  Constant[] constantPool
          the constantPool of this frame
protected  LocalVariable[] localVariables
          the localVariables of this frame
protected  OperandStack operandStack
          the operandStack of this frame
 
Constructor Summary
Frame(Constant[] constantPool, LocalVariable[] localVariables, Operation[] operations, OperandStack stack, MethodDescriptor methodDescriptor)
          constructs a new Frame
 
Method Summary
 Object clone()
           
 Constant[] getConstantPool()
           
 LocalVariable[] getLocalVariables()
           
 MethodDescriptor getMethodDescriptor()
           
 OperandStack getOperandStack()
           
 Operation[] getOperations()
           
 int getReturnPosition()
           
 boolean isPaused()
           
 void setPaused(boolean paused)
           
 void setReturnPosition(int returnPosition)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

constantPool

protected Constant[] constantPool
the constantPool of this frame


localVariables

protected LocalVariable[] localVariables
the localVariables of this frame


operandStack

protected OperandStack operandStack
the operandStack of this frame

Constructor Detail

Frame

public Frame(Constant[] constantPool,
             LocalVariable[] localVariables,
             Operation[] operations,
             OperandStack stack,
             MethodDescriptor methodDescriptor)
constructs a new Frame

Parameters:
constantPool - the constantPool
localVariables - the localVariables
operations - the array of operations to execute
stack - the stack
methodDescriptor - the methodDescriptor
Method Detail

getConstantPool

public Constant[] getConstantPool()
Returns:
Returns the constantPool.

getLocalVariables

public LocalVariable[] getLocalVariables()
Returns:
Returns the localVariables.

getReturnPosition

public int getReturnPosition()
Returns:
Returns the returnPosition.

getOperations

public Operation[] getOperations()
Returns:
Returns the operations.

setReturnPosition

public void setReturnPosition(int returnPosition)
Parameters:
returnPosition - The returnPosition to set.

getMethodDescriptor

public MethodDescriptor getMethodDescriptor()
Returns:
Returns the methodDescriptor.

getOperandStack

public OperandStack getOperandStack()
Returns:
Returns the operandStack.

isPaused

public boolean isPaused()
Returns:
Returns whether the frame is paused.

setPaused

public void setPaused(boolean paused)
Parameters:
paused - The paused to set.

clone

public Object clone()
Overrides:
clone in class Object
See Also:
Object.clone()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.