|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjs.tinyvm.ClassRecord
public class ClassRecord
Abstraction for a class record (see vmsrc/language.h).
Constructor Summary | |
---|---|
ClassRecord()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassRecord()
Method Detail |
---|
public void useAllMethods()
public String getName()
public int getLength()
WritableData
getLength
in interface WritableData
public void dump(IByteWriter aOut) throws TinyVMException
WritableData
dump
in interface WritableData
aOut
- writer to write binary to
TinyVMException
public boolean isArray()
public boolean isInterface()
public boolean isPrimitive()
public boolean hasStaticInitializer()
public boolean hasMethod(Signature aSignature, boolean aStatic)
aSignature
- aStatic
-
public void initFlags()
public int getAllocationSize() throws TinyVMException
TinyVMException
public int getClassSize() throws TinyVMException
TinyVMException
public int computeClassSize() throws TinyVMException
TinyVMException
public boolean hasReference() throws TinyVMException
TinyVMException
public boolean hasParent()
public ClassRecord getParent()
public void initParent() throws TinyVMException
TinyVMException
public static String getArrayClassName(String aName)
public void storeReferredClasses(HashMap<String,ClassRecord> aClasses, RecordTable<ClassRecord> aClassRecords, ClassPath aClassPath, ArrayList<String> aInterfaceMethods) throws TinyVMException
TinyVMException
public void addUsedMethod(String aRef)
public static String cpEntryId(Constant aEntry)
public int getInstanceFieldOffset(String aName) throws TinyVMException
TinyVMException
public int getStaticFieldOffset(String aName) throws TinyVMException
aName
-
TinyVMException
public StaticValue getStaticValue(String aName) throws TinyVMException
aName
- the name of the static field.
TinyVMException
public int getStaticFieldIndex(String aName)
public StaticFieldRecord getStaticFieldRecord(String aName)
public void storeConstants(RecordTable<ConstantRecord> aConstantTable, RecordTable<ConstantValue> aConstantValues) throws TinyVMException
TinyVMException
public void storeMethods(RecordTable<RecordTable<MethodRecord>> aMethodTables, RecordTable<RecordTable<ExceptionRecord>> aExceptionTables, HashVector<Signature> aSignatures, boolean aAll) throws TinyVMException
TinyVMException
public void storeOptimizedMethods(RecordTable<RecordTable<MethodRecord>> aMethodTables, RecordTable<RecordTable<ExceptionRecord>> aExceptionTables, HashVector<Signature> aSignatures) throws TinyVMException
TinyVMException
public void storeOptimizedStaticFields(RecordTable<StaticFieldRecord> aStaticFields, RecordTable<StaticValue> aStaticState, int align) throws TinyVMException
TinyVMException
public void storeOptimizedFields(RecordTable<RecordTable<InstanceFieldRecord>> aInstanceFieldTables) throws TinyVMException
TinyVMException
public void storeFields(RecordTable<RecordTable<InstanceFieldRecord>> aInstanceFieldTables, RecordTable<StaticFieldRecord> aStaticFields, RecordTable<StaticValue> aStaticState) throws TinyVMException
TinyVMException
public void storeCode(RecordTable<CodeSequence> aCodeSequences, boolean aPostProcess) throws TinyVMException
TinyVMException
public void markMethods() throws TinyVMException
TinyVMException
public void markMethod(MethodRecord pRec, boolean directCall) throws TinyVMException
TinyVMException
public static ClassRecord getClassRecord(String className, ClassPath aCP, Binary aBinary) throws TinyVMException
TinyVMException
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object aObj)
equals
in class Object
public void addInterfaces(ClassRecord pUserClass)
public void addInterfaceUser(ClassRecord pRec)
public void findHiddenMethods() throws TinyVMException
TinyVMException
public void markUsed()
public void markInstanceUsed()
public boolean used()
public boolean instanceUsed()
public int getArrayDimension()
public ClassRecord getArrayElementClass()
public String signature()
public boolean isWrapper()
public PrimitiveClassRecord getPrimitiveClass()
public void storeOptimizedImplementingClasses(RecordTable<ClassRecord> aClassRecords)
aClassRecords
- Set of recordspublic void storeInterfaceMap(RecordTable<InterfaceMap> maps) throws TinyVMException
maps
- the set of ineterface maps.
TinyVMException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |