Interface JSwitch

    • Method Detail

      • _case

        JBlock _case​(JExpr expr)
        Add a switch case.
        Parameters:
        expr - the case expression
        Returns:
        a sub-block for the case logic
      • _case

        JBlock _case​(java.lang.String constName)
        Add a switch case for an enum constant.
        Parameters:
        constName - the constant name
        Returns:
        a sub-block for the case logic
      • _default

        JBlock _default()
        Add the default block.
        Returns:
        the default sub-block