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()
          Create an IMT.
 ArchitectureSpecific.CodeArray get(int index)
          Get a TIB entry.
 ArchitectureSpecific.CodeArray[] getBacking()
          Return the backing array (for boot image writing)
 int length()
          Return the length of the TIB
 void set(int index, ArchitectureSpecific.CodeArray 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

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()
Return the backing array (for boot image writing)

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

allocate

public static IMT allocate()
Create an IMT.

Returns:
The created IMT instance.

get

public ArchitectureSpecific.CodeArray get(int index)
Get a TIB entry.

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

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()
Return the length of the TIB

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