org.jikesrvm.objectmodel
Class IMT

java.lang.Object
  extended by org.jikesrvm.objectmodel.IMT
All Implemented Interfaces:
RuntimeTable<ArchitectureSpecific.CodeArray>

public final class IMT
extends Object
implements RuntimeTable<ArchitectureSpecific.CodeArray>

This class represents an instance of an interface method table, at runtime it is an array with CodeArray elements.


Field Summary
private  ArchitectureSpecific.CodeArray[] data
          The backing data used during boot image writing.
 
Constructor Summary
private IMT()
          Private constructor.
 
Method Summary
static IMT allocate()
          Creates an IMT.
 ArchitectureSpecific.CodeArray get(int index)
          Gets an entry in the IMT.
 ArchitectureSpecific.CodeArray[] getBacking()
          Only called at boot image write time.
 int length()
          Returns the length of the IMT
 void set(int index, ArchitectureSpecific.CodeArray value)
          Sets an entry in the IMT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private final ArchitectureSpecific.CodeArray[] data
The backing data used during boot image writing.

Constructor Detail

IMT

private IMT()
Private constructor. Can not create instances.

Method Detail

getBacking

public ArchitectureSpecific.CodeArray[] getBacking()
Description copied from interface: RuntimeTable
Only called at boot image write time. This returns the backing array to the boot image writer.

Specified by:
getBacking in interface RuntimeTable<ArchitectureSpecific.CodeArray>
Returns:
backing array of elements

allocate

public static IMT allocate()
Creates an IMT.

Returns:
The created IMT instance.

get

public ArchitectureSpecific.CodeArray get(int index)
Gets an entry in the IMT.

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

set

public void set(int index,
                ArchitectureSpecific.CodeArray value)
Sets an entry in the IMT.

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

length

public int length()
Returns the length of the IMT

Specified by:
length in interface RuntimeTable<ArchitectureSpecific.CodeArray>
Returns:
length of table