jrre
Class Stack

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

public class Stack
extends java.lang.Object

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

Constructor Summary
Stack()
           
 
Method Summary
static void branch(int offset)
           
static void clearStack()
           
static void executeClassInitFrame(StackFrame initFrame)
           
static Class getClassContainingMethod()
           
static Instruction getCurrentInstruction()
           
static Type getLocalVariable(int variableIndex)
           
static StackFrame getNextFrame()
          Adds a listener to the collection of classes to notify when a property changes.
static Instruction getNextInstruction()
           
static Instruction getPrevInstruction()
           
static StackFrame getStackPointer()
          Gets the StackPointer.
static void pop()
           
static Type popOperand()
           
static void popReturn(Type returnValue)
           
static void push(StackFrame toPush, java.lang.String methodSignature)
           
static void pushInitial(StackFrame toPush, java.lang.String methodSignature)
           
static void pushOperand(Type variable)
           
static void restoreLastInstruction()
           
static void setLocalVariable(int variableIndex, Type value)
           
static void setNextFrame(StackFrame newFrame)
           
static void setStackPointer(StackFrame newStackPointer)
          Sets the StackPointer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stack

public Stack()
Method Detail

getNextFrame

public static StackFrame getNextFrame()
Adds a listener to the collection of classes to notify when a property changes.


setNextFrame

public static void setNextFrame(StackFrame newFrame)

getClassContainingMethod

public static Class getClassContainingMethod()

getStackPointer

public static StackFrame getStackPointer()
Gets the StackPointer.


setStackPointer

public static void setStackPointer(StackFrame newStackPointer)
Sets the StackPointer.


clearStack

public static void clearStack()

pushInitial

public static void pushInitial(StackFrame toPush,
                               java.lang.String methodSignature)

push

public static void push(StackFrame toPush,
                        java.lang.String methodSignature)

pop

public static void pop()

popReturn

public static void popReturn(Type returnValue)

getLocalVariable

public static Type getLocalVariable(int variableIndex)

setLocalVariable

public static void setLocalVariable(int variableIndex,
                                    Type value)

pushOperand

public static void pushOperand(Type variable)

popOperand

public static Type popOperand()

getNextInstruction

public static Instruction getNextInstruction()

getPrevInstruction

public static Instruction getPrevInstruction()

getCurrentInstruction

public static Instruction getCurrentInstruction()

restoreLastInstruction

public static void restoreLastInstruction()

executeClassInitFrame

public static void executeClassInitFrame(StackFrame initFrame)

branch

public static void branch(int offset)


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