js.tinyvm
Class MethodRecord
java.lang.Object
js.tinyvm.MethodRecord
- All Implemented Interfaces:
- WritableData
public class MethodRecord
- extends Object
- implements WritableData
- Rating

Method Summary |
void |
copyCode(byte[] aCode,
JavaClass aClassFile,
Binary aBinary)
|
void |
copyCode(RecordTable<CodeSequence> aCodeSequences,
JavaClass aClassFile,
Binary aBinary)
|
void |
dump(IByteWriter aOut)
Dump. |
boolean |
equals(Object aOther)
|
ClassRecord |
getClassRecord()
|
int |
getCodeStart()
|
RecordTable<ExceptionRecord> |
getExceptions()
|
int |
getFlags()
|
int |
getLength()
Returns the length of the record, in bytes. |
int |
getNumParameterWords()
|
static int |
getNumParamWords(Method aMethod)
Number of parameter words, including this . |
int |
getSignatureId()
|
int |
hashCode()
|
void |
initFlags()
|
boolean |
isCalled()
|
void |
markCalled(JavaClass aClassFile,
Binary aBinary)
|
void |
postProcessCode(byte[] aCode,
JavaClass aClassFile,
Binary aBinary)
|
void |
postProcessCode(RecordTable<CodeSequence> aCodeSequences,
JavaClass aClassFile,
Binary aBinary)
|
void |
setHiddenBy(MethodRecord pRec)
|
void |
storeExceptionTable(CodeException[] aExcepTable,
Binary aBinary,
JavaClass aCF)
|
MethodRecord
public MethodRecord(Method aEntry,
Signature aSignature,
ClassRecord aClassRec,
Binary aBinary,
RecordTable<RecordTable<ExceptionRecord>> aExceptionTables,
HashVector<Signature> aSignatures)
throws TinyVMException
- Throws:
TinyVMException
getFlags
public int getFlags()
getClassRecord
public ClassRecord getClassRecord()
initFlags
public void initFlags()
copyCode
public void copyCode(RecordTable<CodeSequence> aCodeSequences,
JavaClass aClassFile,
Binary aBinary)
postProcessCode
public void postProcessCode(RecordTable<CodeSequence> aCodeSequences,
JavaClass aClassFile,
Binary aBinary)
throws TinyVMException
- Throws:
TinyVMException
getNumParamWords
public static int getNumParamWords(Method aMethod)
- Number of parameter words, including
this
.
- Parameters:
aMethod
- bcel method object
storeExceptionTable
public void storeExceptionTable(CodeException[] aExcepTable,
Binary aBinary,
JavaClass aCF)
copyCode
public void copyCode(byte[] aCode,
JavaClass aClassFile,
Binary aBinary)
postProcessCode
public void postProcessCode(byte[] aCode,
JavaClass aClassFile,
Binary aBinary)
throws TinyVMException
- Throws:
TinyVMException
getLength
public int getLength()
- Description copied from interface:
WritableData
- Returns the length of the record, in bytes.
- Specified by:
getLength
in interface WritableData
dump
public void dump(IByteWriter aOut)
throws TinyVMException
- Description copied from interface:
WritableData
- Dump.
- Specified by:
dump
in interface WritableData
- Parameters:
aOut
- writer to write binary to
- Throws:
TinyVMException
getNumParameterWords
public int getNumParameterWords()
getSignatureId
public int getSignatureId()
equals
public boolean equals(Object aOther)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
markCalled
public void markCalled(JavaClass aClassFile,
Binary aBinary)
throws TinyVMException
- Throws:
TinyVMException
isCalled
public boolean isCalled()
getCodeStart
public int getCodeStart()
setHiddenBy
public void setHiddenBy(MethodRecord pRec)
getExceptions
public RecordTable<ExceptionRecord> getExceptions()