Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use ExceptionCatch
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
CodeElement
when traversing the contents
of a CodeModel
.
PseudoInstruction
Modifier and Type | Method and Description |
---|---|
public Optional | Returns: the type of the exception to catch, or empty if this handler is unconditionalReturns the type of the exception to catch, or empty if this handler is unconditional. |
public Label | |
public static ExceptionCatch | Returns: an exception table pseudo-instructionthe handler for the exception handler, Label the beginning of the instruction range for the guarded instructions tryStart, Label the end of the instruction range for the guarded instructions tryEnd, Optional<ClassEntry> the type of exception to catch, or empty if this
handler is unconditional catchTypeEntry)Returns an exception table pseudo-instruction. |
public static ExceptionCatch | Returns: an exception table pseudo-instruction for an unconditional handlerthe handler for the exception handler, Label the beginning of the instruction range for the gaurded instructions tryStart, Label the end of the instruction range for the gaurded instructions tryEnd)Returns an exception table pseudo-instruction for an unconditional handler. |
public Label | Returns: the end of the instruction range for the guarded instructionsReturns the end of the instruction range for the guarded instructions. |
public Label | Returns: the beginning of the instruction range for the guarded instructionsReturns the beginning of the instruction range for the guarded instructions. |
catchType | back to summary |
---|---|
public Optional Returns the type of the exception to catch, or empty if this handler is unconditional.
|
handler | back to summary |
---|---|
public Label handler() Returns the handler for the exception.
|
of | back to summary |
---|---|
public static ExceptionCatch of(Label handler, Label tryStart, Label tryEnd, Optional<ClassEntry> catchTypeEntry) Returns an exception table pseudo-instruction.
|
of | back to summary |
---|---|
public static ExceptionCatch of(Label handler, Label tryStart, Label tryEnd) Returns an exception table pseudo-instruction for an unconditional handler.
|
tryEnd | back to summary |
---|---|
public Label tryEnd() Returns the end of the instruction range for the guarded instructions.
|
tryStart | back to summary |
---|---|
public Label tryStart() Returns the beginning of the instruction range for the guarded instructions.
|