jrre
Class ObjectArea

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

public class ObjectArea
extends java.lang.Object

Structure for containing the all of the instansiated objects in the enviroment.

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

Constructor Summary
ObjectArea()
           
 
Method Summary
static void addObject(java.lang.String key, ObjectInstance objectToAdd)
          Adds an object to the heap.
static void clear()
           
static ObjectInstance getObject(java.lang.String key)
          Gets an object referance from the heap.
 void removeObject(CPInfo key)
          Removes an object from the heap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectArea

public ObjectArea()
Method Detail

clear

public static void clear()

addObject

public static void addObject(java.lang.String key,
                             ObjectInstance objectToAdd)
Adds an object to the heap.

Parameters:
key - The constant pool referance for the object to add to the heap.
objectToAdd - The object to add.

getObject

public static ObjectInstance getObject(java.lang.String key)
Gets an object referance from the heap.

Returns:
The object that is linked to the supplied descriptor.

removeObject

public void removeObject(CPInfo key)
Removes an object from the heap.

Parameters:
key - The constant pool referance for the object to remove from the heap.


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