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 TIB of the specified size.
 ITable get(int index)
          Get a TIB entry.
 ITable[] getBacking()
          Return the backing array (for boot image writing)
 int length()
          Return the length of the TIB
 void set(int index, ITable value)
          Set a TIB entry.
 
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 TIB of the specified size.

Parameters:
size - The size of the TIB
Returns:
The created TIB instance.

get

public ITable get(int index)
Get a TIB entry.

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 a TIB entry.

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 TIB

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