|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.ksm.MethodBody
This class represent the definition of a method body.
Constructor Summary | |
MethodBody()
|
Method Summary | |
void |
addHandler(java.lang.String thrown,
LabelReference start,
LabelReference end,
LabelReference handler)
Add an exception handler info. |
void |
addInstruction(Instruction instruction)
Add an instruction at the end of the instruction list. |
void |
addLabel(java.lang.String name)
Add a label at the end of the instruction list. |
void |
addLineNumber(int line)
Add a line number info. |
void |
addVariable(java.lang.String name,
java.lang.String type,
LabelReference start,
LabelReference end,
short slot)
Add a local variable info. |
CodeInfo |
genCodeInfo()
Generate a classfile code info, do not optimize. |
Instruction |
resolveLabel(java.lang.String name)
Returns the instruction at specified label. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public MethodBody()
Method Detail |
public void addInstruction(Instruction instruction)
public void addLabel(java.lang.String name) throws KsmError
KsmError
- An assembler error.public void addHandler(java.lang.String thrown, LabelReference start, LabelReference end, LabelReference handler)
public void addLineNumber(int line)
public void addVariable(java.lang.String name, java.lang.String type, LabelReference start, LabelReference end, short slot)
public Instruction resolveLabel(java.lang.String name) throws UnresolvableLabelException
name
- The label name.public CodeInfo genCodeInfo() throws KsmError
KsmError
- An assembler error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |