jrre
Class JRRE

java.lang.Object
  |
  +--jrre.JRRE
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.lang.Runnable

public class JRRE
extends java.lang.Object
implements java.awt.event.ActionListener, java.lang.Runnable

The Java Reasearch Runtime Enviroments virtual machine implementation. This class manages the interactions between the objectArea, classloader, and the instruction and operand stacks.

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

Constructor Summary
JRRE(java.lang.String fileName)
          Initialises the runtime enviroment, loads the class specified, and begin's execution of its init method.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Handles action events fired by button presses and passes them to registered action listeners.
 void addEventListener(VMEventListener listener)
           
static void beginExecution()
          Begin/resume execution at the next instruction.
static boolean execute()
          Execute the top instruction.
static boolean getGui()
          Deprecated.  
static Class getRootClass()
          Gets the RootClass.
static boolean getRunAtLoad()
           
static boolean getVerbose()
          Gets the Verbose mode.
static boolean guiOn()
           
static void halt()
          Halt execution.
static void load(Class classToLoad)
          Initialises the enviroment, loads the class specified and any classes it referanced, and begins execution of its init method.
static void pause()
           
static void processEvent(VMEvent event)
           
 void propertyChange(java.beans.PropertyChangeEvent event)
          Handles action events fired by button presses and passes them to registered action listeners.
 void run()
           
static void setGui(boolean guiBool)
          Sets the Gui.
static void setRootClass(Class rootClass)
          Sets the RootClass.
static void setRunAtLoad(boolean runAtLoadSet)
           
static void setVerbose(boolean verboseBool)
          Sets the Verbose mode.
static boolean step(int stepCount)
          Step to the next instruction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRRE

public JRRE(java.lang.String fileName)
Initialises the runtime enviroment, loads the class specified, and begin's execution of its init method.

Parameters:
fileName -
Method Detail

getRootClass

public static Class getRootClass()
Gets the RootClass.


setRootClass

public static void setRootClass(Class rootClass)
Sets the RootClass.


processEvent

public static void processEvent(VMEvent event)

getGui

public static boolean getGui()
Deprecated.  

Gets the Gui.


guiOn

public static boolean guiOn()

getRunAtLoad

public static boolean getRunAtLoad()

setRunAtLoad

public static void setRunAtLoad(boolean runAtLoadSet)

setGui

public static void setGui(boolean guiBool)
Sets the Gui.


getVerbose

public static boolean getVerbose()
Gets the Verbose mode.


setVerbose

public static void setVerbose(boolean verboseBool)
Sets the Verbose mode.


addEventListener

public void addEventListener(VMEventListener listener)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Handles action events fired by button presses and passes them to registered action listeners.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Handles action events fired by button presses and passes them to registered action listeners.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

run

public void run()
Specified by:
run in interface java.lang.Runnable

beginExecution

public static void beginExecution()
Begin/resume execution at the next instruction.


pause

public static void pause()

halt

public static void halt()
Halt execution.


step

public static boolean step(int stepCount)
Step to the next instruction.


execute

public static boolean execute()
Execute the top instruction.


load

public static void load(Class classToLoad)
Initialises the enviroment, loads the class specified and any classes it referanced, and begins execution of its init method.



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