Class ASTSwitchStatement

    • Method Detail

      • hasDefaultCase

        public boolean hasDefaultCase()
        Returns true if this switch has a default case.
      • getTestedExpression

        public ASTExpression getTestedExpression()
        Gets the expression tested by this switch. This is the expression between the parentheses.
      • isExhaustiveEnumSwitch

        public boolean isExhaustiveEnumSwitch()
        Returns true if this switch statement tests an expression having an enum type and all the constants of this type are covered by a switch case. Returns false if the type of the tested expression could not be resolved.
      • isFallthroughSwitch

        public boolean isFallthroughSwitch()
        Returns true if this a switch which uses fallthrough branches (old school case label: break;) and not arrow branches. If the switch has no branches, returns false.