Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use SwitchCase
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
lookupswitch
or tableswitch
instruction.
LookupSwitchInstruction
, TableSwitchInstruction
Modifier and Type | Method and Description |
---|---|
public int | Returns: the integer value corresponding to this caseReturns the integer value corresponding to this case. |
public static SwitchCase | Returns: the SwitchCasethe integer value for the case caseValue, Label the branch target for the case target)Create a SwitchCase |
public Label | Returns: the branch target corresponding to this caseReturns the branch target corresponding to this case. |
caseValue | back to summary |
---|---|
public int caseValue() Returns the integer value corresponding to this case.
|
of | back to summary |
---|---|
public static SwitchCase of(int caseValue, Label target) Create a SwitchCase
|
target | back to summary |
---|---|
public Label target() Returns the branch target corresponding to this case.
|