|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjs.tinyvm.WritableDataWithOffset
js.tinyvm.RecordTable<T>
public class RecordTable<T extends WritableData>
Record table.
| Constructor Summary | |
|---|---|
RecordTable(java.lang.String name,
boolean allowDuplicates,
boolean align)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(T element)
Add a writable element. |
void |
dump(IByteWriter writer)
Dump all elements. |
T |
get(int index)
Get writable element by its index. |
int |
getLength()
Length. |
int |
indexOf(T element)
Get index of writable element. |
void |
initOffset(int startOffset)
Init offset of record table and all of its elements. |
java.util.Iterator<T> |
iterator()
Iterator. |
int |
size()
Number of entries. |
| Methods inherited from class js.tinyvm.WritableDataWithOffset |
|---|
getOffset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecordTable(java.lang.String name,
boolean allowDuplicates,
boolean align)
name - description of this record tableallowDuplicates - allow duplicates?align - align output?| Method Detail |
|---|
public void add(T element)
element - public T get(int index)
index - indexpublic int indexOf(T element)
element -
public java.util.Iterator<T> iterator()
public int size()
public void dump(IByteWriter writer)
throws TinyVMException
writer - writer to write binary to
TinyVMException
public int getLength()
throws TinyVMException
TinyVMException
public void initOffset(int startOffset)
throws TinyVMException
initOffset in class WritableDataWithOffsetstartOffset - start offset
TinyVMException - if offset is not correct
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||