jrre
Class StackFrame

java.lang.Object
  |
  +--jrre.StackFrame

public class StackFrame
extends java.lang.Object

Author:
Christopher Ellsworth (Chris@chrisellsworth.com)
, Clerance Alston (massclax@hotmail.com)

Constructor Summary
StackFrame()
          Constructor.
 
Method Summary
 void clear()
           
 Class getClassContainingMethod()
          Gets the ClassContainingMethod.
 Instruction getCurrentInstruction()
           
 Instruction getInstructions()
          Gets the Instructions.
 Type getLocalVariable(int variableIndex)
           
 int getLocalVariableSize()
          Gets the LocalVariableSize.
 int getMaxStackSize()
          Gets the MaxStackSize.
 StackFrame getNextFrame()
           
 Instruction getNextInstruction()
           
 OperandStack getOperandStack()
          Gets the OperandStack.
 Instruction getPrevInstruction()
           
 StackFrame getPreviousFrame()
          Gets the PreviousFrame.
 void restoreLastInstruction()
           
 void setClassContainingMethod(Class classContainingMethod)
          Sets the ClassContainingMethod.
 void setInstructions(Instruction instructions)
          Sets the Instructions.
 void setLocalVariable(int variableIndex, Type value)
           
 void setLocalVariableSize(int localVariableSize)
          Sets the LocalVariableSize.
 void setMaxStackSize(int maxStackSize)
          Sets the MaxStackSize.
 void setNextFrame(StackFrame newFrame)
           
 void setOperandStack(OperandStack operandStack)
          Sets the OperandStack.
 void setPreviousFrame(StackFrame previousFrame)
          Sets the PreviousFrame.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StackFrame

public StackFrame()
Constructor.

Method Detail

getMaxStackSize

public int getMaxStackSize()
Gets the MaxStackSize.


setMaxStackSize

public void setMaxStackSize(int maxStackSize)
Sets the MaxStackSize.


clear

public void clear()

getClassContainingMethod

public Class getClassContainingMethod()
Gets the ClassContainingMethod.


setClassContainingMethod

public void setClassContainingMethod(Class classContainingMethod)
Sets the ClassContainingMethod.


getOperandStack

public OperandStack getOperandStack()
Gets the OperandStack.


setOperandStack

public void setOperandStack(OperandStack operandStack)
Sets the OperandStack.


getPreviousFrame

public StackFrame getPreviousFrame()
Gets the PreviousFrame.


setPreviousFrame

public void setPreviousFrame(StackFrame previousFrame)
Sets the PreviousFrame.


getNextFrame

public StackFrame getNextFrame()

setNextFrame

public void setNextFrame(StackFrame newFrame)

getLocalVariable

public Type getLocalVariable(int variableIndex)

setLocalVariable

public void setLocalVariable(int variableIndex,
                             Type value)

getCurrentInstruction

public Instruction getCurrentInstruction()

getInstructions

public Instruction getInstructions()
Gets the Instructions.


setInstructions

public void setInstructions(Instruction instructions)
Sets the Instructions.


getLocalVariableSize

public int getLocalVariableSize()
Gets the LocalVariableSize.


setLocalVariableSize

public void setLocalVariableSize(int localVariableSize)
Sets the LocalVariableSize.


getNextInstruction

public Instruction getNextInstruction()

getPrevInstruction

public Instruction getPrevInstruction()

restoreLastInstruction

public void restoreLastInstruction()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2002 Appalachian State University. All Rights Reserved.