js.tinyvm
Class MethodRecord
java.lang.Object
js.tinyvm.MethodRecord
- All Implemented Interfaces:
- WritableData
public class MethodRecord
- extends java.lang.Object
- implements WritableData
Method Summary |
void |
copyCode(byte[] aCode,
org.apache.bcel.classfile.JavaClass aClassFile,
Binary aBinary)
|
void |
copyCode(RecordTable<CodeSequence> aCodeSequences,
org.apache.bcel.classfile.JavaClass aClassFile,
Binary aBinary)
|
void |
dump(IByteWriter aOut)
Dump. |
boolean |
equals(java.lang.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(org.apache.bcel.classfile.Method aMethod)
Number of parameter words, including this . |
int |
getSignatureId()
|
int |
hashCode()
|
void |
initFlags()
|
boolean |
isCalled()
|
void |
markCalled(org.apache.bcel.classfile.JavaClass aClassFile,
Binary aBinary)
|
void |
postProcessCode(byte[] aCode,
org.apache.bcel.classfile.JavaClass aClassFile,
Binary aBinary)
|
void |
postProcessCode(RecordTable<CodeSequence> aCodeSequences,
org.apache.bcel.classfile.JavaClass aClassFile,
Binary aBinary)
|
void |
setHiddenBy(MethodRecord pRec)
|
void |
storeExceptionTable(org.apache.bcel.classfile.CodeException[] aExcepTable,
Binary aBinary,
org.apache.bcel.classfile.JavaClass aCF)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MethodRecord
public MethodRecord(org.apache.bcel.classfile.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,
org.apache.bcel.classfile.JavaClass aClassFile,
Binary aBinary)
postProcessCode
public void postProcessCode(RecordTable<CodeSequence> aCodeSequences,
org.apache.bcel.classfile.JavaClass aClassFile,
Binary aBinary)
throws TinyVMException
- Throws:
TinyVMException
getNumParamWords
public static int getNumParamWords(org.apache.bcel.classfile.Method aMethod)
- Number of parameter words, including
this
.
- Parameters:
aMethod
- bcel method object
storeExceptionTable
public void storeExceptionTable(org.apache.bcel.classfile.CodeException[] aExcepTable,
Binary aBinary,
org.apache.bcel.classfile.JavaClass aCF)
copyCode
public void copyCode(byte[] aCode,
org.apache.bcel.classfile.JavaClass aClassFile,
Binary aBinary)
postProcessCode
public void postProcessCode(byte[] aCode,
org.apache.bcel.classfile.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(java.lang.Object aOther)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
markCalled
public void markCalled(org.apache.bcel.classfile.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()