org.jikesrvm.objectmodel
Class ITableArray

java.lang.Object
  extended by org.jikesrvm.objectmodel.ITableArray
All Implemented Interfaces:
RuntimeTable<ITable>

public final class ITableArray
extends Object
implements RuntimeTable<ITable>

This class represents an instance of an array of interface tables.


Field Summary
private  ITable[] backingData
          The backing data used during boot image writing.
 
Constructor Summary
private ITableArray(int size)
          Private constructor.
 
Method Summary
static ITableArray allocate(int size)
          Create a new array of ITable of the specified size.
 ITable get(int index)
          Get an ITable entry from the array.
 ITable[] getBacking()
          Return the backing array (for boot image writing)
 int length()
          Return the length of the array of ITable
 void set(int index, ITable value)
          Set an ITable entry in the array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

backingData

private final ITable[] backingData
The backing data used during boot image writing.

Constructor Detail

ITableArray

private ITableArray(int size)
Private constructor. Can not create instances.

Method Detail

getBacking

public ITable[] getBacking()
Return the backing array (for boot image writing)

Specified by:
getBacking in interface RuntimeTable<ITable>
Returns:
backing array of elements

allocate

public static ITableArray allocate(int size)
Create a new array of ITable of the specified size.

Parameters:
size - The size of the array
Returns:
The created ITableArray instance

get

public ITable get(int index)
Get an ITable entry from the array.

Specified by:
get in interface RuntimeTable<ITable>
Parameters:
index - The index of the entry to get
Returns:
The value of that entry

set

public void set(int index,
                ITable value)
Set an ITable entry in the array.

Specified by:
set in interface RuntimeTable<ITable>
Parameters:
index - The index of the entry to set
value - The value to set the entry to.

length

public int length()
Return the length of the array of ITable

Specified by:
length in interface RuntimeTable<ITable>
Returns:
length of table