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.