Class ASTForStatement

    • Method Detail

      • getGuardExpressionNode

        @Deprecated
        public ASTExpression getGuardExpressionNode()
        Deprecated.
        Returns the node that represents the guard of this loop. This may be any expression of type boolean.

        If this node represents a foreach loop, or if there is no specified guard, then returns null.

      • getCondition

        public ASTExpression getCondition()
        Returns the node that represents the guard of this loop. This may be any expression of type boolean.

        If this node represents a foreach loop, or if there is no specified guard, then returns null.

      • isForeach

        public boolean isForeach()
        Returns true if this node represents a foreach loop.
      • getBody

        public ASTStatement getBody()
        Returns the statement that represents the body of this loop.