public class WhileStatement extends Statement implements LoopingStatement
Constructor and Description |
---|
WhileStatement(BooleanExpression booleanExpression,
Statement loopBlock) |
Modifier and Type | Method and Description |
---|---|
BooleanExpression |
getBooleanExpression() |
Statement |
getLoopBlock()
Gets the loop block.
|
void |
setBooleanExpression(BooleanExpression booleanExpression) |
void |
setLoopBlock(Statement loopBlock)
Sets the loop block.
|
void |
visit(GroovyCodeVisitor visitor) |
addStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel
copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public WhileStatement(BooleanExpression booleanExpression, Statement loopBlock)
public void visit(GroovyCodeVisitor visitor)
public BooleanExpression getBooleanExpression()
public Statement getLoopBlock()
LoopingStatement
getLoopBlock
in interface LoopingStatement
public void setBooleanExpression(BooleanExpression booleanExpression)
public void setLoopBlock(Statement loopBlock)
LoopingStatement
setLoopBlock
in interface LoopingStatement