Interface SwitchCase


public sealed interface SwitchCase
Models a single case in a lookupswitch or tableswitch instruction.
Since:
24
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the integer value corresponding to this case.
    static SwitchCase
    of(int caseValue, Label target)
    Create a SwitchCase
    Returns the branch target corresponding to this case.
  • Method Details

    • caseValue

      int caseValue()
      Returns the integer value corresponding to this case.
      Returns:
      the integer value corresponding to this case
    • target

      Label target()
      Returns the branch target corresponding to this case.
      Returns:
      the branch target corresponding to this case
    • of

      static SwitchCase of(int caseValue, Label target)
      Create a SwitchCase
      Parameters:
      caseValue - the integer value for the case
      target - the branch target for the case
      Returns:
      the SwitchCase