jrre
Class ObjectInstance

java.lang.Object
  |
  +--jrre.ObjectInstance
Direct Known Subclasses:
ArrayInstance

public class ObjectInstance
extends java.lang.Object

Object implementation for the JRRE system.

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

Constructor Summary
ObjectInstance(int dataSize)
          Constructs the object with the number of fields that it will have to store the value's of.
 
Method Summary
 Class getClassData()
          Gets the ClassData.
 Type getInstanceValue(int index)
          Gets the data at the linked to the specified descriptor.
 void setClassData(Class classData)
          Sets the ClassData.
 void setInstanceValue(int index, Type value)
          Sets a value to the instance data at the index specified.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectInstance

public ObjectInstance(int dataSize)
Constructs the object with the number of fields that it will have to store the value's of.

Parameters:
dataSize - The size to initialize with.
Method Detail

getClassData

public Class getClassData()
Gets the ClassData.


setClassData

public void setClassData(Class classData)
Sets the ClassData.


toString

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

getInstanceValue

public Type getInstanceValue(int index)
Gets the data at the linked to the specified descriptor.

Parameters:
index -
Returns:
The instance data specified by the supplied descriptor.

setInstanceValue

public void setInstanceValue(int index,
                             Type value)
Sets a value to the instance data at the index specified.

Parameters:
index -
value -


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