|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.CodeEnv
This class represent the code environement during control flow This allow to compute the amount of stack consumed, to check if instructions are reached and so on
| Field Summary | |
private CodeInfo |
codeInfo
|
private InstructionHandle |
methodStart
|
| Constructor Summary | |
private |
CodeEnv(CodeInfo codeInfo)
Constructs a new CodeEnv structure. |
| Method Summary | |
static void |
check(CodeInfo codeInfo)
Checks the specified CodeInfo structure and computes maxStack and maxLocals. |
(package private) void |
checkExecutionPath(InstructionHandle handle,
int curStack)
Verifies execution path(s) starting at specified instruction. |
private void |
checkExecutionPaths()
Verifies all possible execution path(s). |
private void |
computeCodeLength()
Computes size and sets address of each instruction in the code array. |
private void |
computeStackAndLocals()
Computes max stack and max locals. |
(package private) void |
dumpCode()
|
private void |
installInstructionHandles()
Install handles around instructions. |
private void |
removeInstructionHandles()
Replaces handles by associated instructions. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final CodeInfo codeInfo
private InstructionHandle methodStart
| Constructor Detail |
private CodeEnv(CodeInfo codeInfo)
| Method Detail |
public static void check(CodeInfo codeInfo)
throws ClassFileFormatException
ClassFileFormatException
private final void checkExecutionPaths()
throws ClassFileFormatException
ClassFileFormatException
final void checkExecutionPath(InstructionHandle handle,
int curStack)
throws ClassFileFormatException
handle - the handle of the first instructioncurStack - the stack height at the beginning
of the execution of the instruction
ClassFileFormatException - a problem was detectedprivate final void computeCodeLength()
private final void computeStackAndLocals()
private void installInstructionHandles()
private void removeInstructionHandles()
void dumpCode()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||