W3cubDocs

/Groovy 3.0

[Java] Interface LoopingStatement

public interface LoopingStatement

This is an AST Node that provides some sort of looping mechanism. Typically in the form of a block that will be executed repeatedly. DoWhileStatements, WhileStatements, and ForStatements are all examples of LoopingStatements.

Methods Summary

Methods
Type Params Return Type Name and description
public Statement getLoopBlock()
Gets the loop block.
public void setLoopBlock(Statement loopBlock)
Sets the loop block.

Method Detail

public Statement getLoopBlock()

Gets the loop block.

public void setLoopBlock(Statement loopBlock)

Sets the loop block.

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/ast/stmt/LoopingStatement.html