|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object js.tinyvm.WritableDataWithOffset js.tinyvm.InterfaceMap
public class InterfaceMap
This class provides a represntation of an interface map. The map is used at run time to determine if a class implements a particular interface. The map is stored per interface and consists of a bitmap with 1 bits for each class that implements the interface. The linker sorts the classes to try and place classes that implement the same interfaces close to each other. The map then takes advantage of this by using a sparse implementation with a simple base and length positioning the actual variable sized bitmap over the part of the class space that contains the required classes.
Constructor Summary | |
---|---|
InterfaceMap(Binary iBinary,
ClassRecord crec)
|
Method Summary | |
---|---|
void |
dump(IByteWriter aOut)
Write the map to the executable file. |
int |
getFirst()
Return the index of the first class implementing this interface. |
int |
getLength()
return the number of bytes that make up this interface map. |
int |
getSize()
Return the number of "live" bits in the map. |
Methods inherited from class js.tinyvm.WritableDataWithOffset |
---|
getOffset, initOffset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterfaceMap(Binary iBinary, ClassRecord crec) throws TinyVMException
TinyVMException
Method Detail |
---|
public int getFirst()
public int getSize()
public int getLength()
public void dump(IByteWriter aOut) throws TinyVMException
aOut
- access to the file writer
TinyVMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |