public final class ITable extends Object implements RuntimeTable<Object>
Modifier and Type | Field and Description |
---|---|
private Object[] |
data
The backing data used during boot image writing.
|
Modifier | Constructor and Description |
---|---|
private |
ITable(int size) |
Modifier and Type | Method and Description |
---|---|
static ITable |
allocate(int size)
Creates a new ITable of the specified size.
|
Object |
get(int index)
Gets an entry in the ITable.
|
Object[] |
getBacking()
Only called at boot image write time.
|
CodeArray |
getCode(int index)
Gets the code array at the given index.
|
RVMClass |
getInterfaceClass() |
boolean |
isFor(RVMType I)
Does this ITable correspond to the given interface?
|
int |
length()
Return the length of the ITable
|
void |
set(int index,
Object value)
Sets an entry in this ITable.
|
private ITable(int size)
public static ITable allocate(int size)
size
- The size of the ITablepublic Object[] getBacking()
RuntimeTable
getBacking
in interface RuntimeTable<Object>
public Object get(int index)
get
in interface RuntimeTable<Object>
index
- The index of the entry to getpublic boolean isFor(RVMType I)
I
- The interfacepublic RVMClass getInterfaceClass()
public CodeArray getCode(int index)
index
- The indexpublic void set(int index, Object value)
set
in interface RuntimeTable<Object>
index
- The index of the entry to setvalue
- The value to set the entry to.public int length()
length
in interface RuntimeTable<Object>