org.jikesrvm.jni
Class LinkageTripletTable

java.lang.Object
  extended by org.jikesrvm.jni.LinkageTripletTable
All Implemented Interfaces:
RuntimeTable<AddressArray>

public final class LinkageTripletTable
extends Object
implements RuntimeTable<AddressArray>

This class holds a triplet for each entry of the JNI function table.


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

Field Detail

data

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

Constructor Detail

LinkageTripletTable

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

Method Detail

allocate

public static LinkageTripletTable allocate(int size)
Create a new LinkageTripletTable of the specified size.

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

getBacking

public AddressArray[] 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<AddressArray>
Returns:
backing array of elements

get

public AddressArray get(int index)
Get a LinkageTripletTable entry.

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

set

public void set(int index,
                AddressArray value)
Set a LinkageTripletTable entry.

Specified by:
set in interface RuntimeTable<AddressArray>
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 LinkageTripletTable

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