Interface ASTLoopStatement

All Superinterfaces:
ASTStatement, GenericNode<JavaNode>, JavaNode, JjtreeNode<JavaNode>, Node, Reportable, TextAvailableNode
All Known Implementing Classes:
ASTDoStatement, ASTForeachStatement, ASTForStatement, ASTWhileStatement

public interface ASTLoopStatement extends ASTStatement
A loop statement.

 Statement ::= DoStatement
             | ForeachStatement
             | ForStatement
             | WhileStatement

 
  • Method Details

    • getBody

      default ASTStatement getBody()
      Returns the statement that represents the body of this loop.
    • getCondition

      default @Nullable ASTExpression getCondition()
      Returns the node that represents the condition of this loop. This may be any expression of type boolean.

      If there is no specified guard, then returns null (in particular, returns null if this is a foreach loop).