class CLException extends Object
Modifier and Type | Field and Description |
---|---|
String |
catchType
The class of exceptions that this exception handler is designated to
catch.
|
String |
endLabel
this instruction.
|
int |
endPC
endLabel is resolved to this value.
|
String |
handlerLabel
Instruction after this label is first instruction of the handler.
|
int |
handlerPC
handlerLabel is resolved to this value.
|
String |
startLabel
The exception handler is active from this instruction in the code section
of the current method being added to ...
|
int |
startPC
startLabel is resolved to this value.
|
Constructor and Description |
---|
CLException(String startLabel,
String endLabel,
String handlerLabel,
String catchType)
Construct a CLException object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
resolveLabels(Hashtable<String,Integer> labelToPC)
Resolve the jump labels to the corresponding pc values using the given
label to pc mapping.
|
public String startLabel
public String endLabel
public String handlerLabel
public String catchType
public int startPC
public int endPC
public int handlerPC
public CLException(String startLabel, String endLabel, String handlerLabel, String catchType)
startLabel
- the exception handler is active from the instruction following
this label in the code section of the current method being
added ...endLabel
- to the instruction following this label. Formally, the handler
is active while the program counter is within the interval
[startLabel, endLabel).handlerLabel
- the handler begins with instruction following this label.catchType
- the exception type that this exception handler is designated
to catch, as a fully qualified name in internal form.public boolean resolveLabels(Hashtable<String,Integer> labelToPC)
labelToPC
- label to pc mapping.