Class SwitchDescriptor.CaseSpec

  • Enclosing class:
    SwitchDescriptor

    public static final class SwitchDescriptor.CaseSpec
    extends Object
    One case of a decoded switch.
    • Method Detail

      • intLabels

        public List<Integer> intLabels()
        Returns:
        the integer labels of this case, empty when it carries expression labels
      • exprLabels

        public List<Expression> exprLabels()
        Returns:
        the enum-constant labels of this case, empty when it carries integer labels
      • isDefault

        public boolean isDefault()
        Returns:
        true if this is the default case
      • header

        public IRBlock header()
        Returns:
        the entry block of the case body, or null for an empty default