public class IfStatement extends Statement
Constructor and Description |
---|
IfStatement(BooleanExpression booleanExpression,
Statement ifBlock,
Statement elseBlock) |
Modifier and Type | Method and Description |
---|---|
BooleanExpression |
getBooleanExpression() |
Statement |
getElseBlock() |
Statement |
getIfBlock() |
void |
setBooleanExpression(BooleanExpression booleanExpression) |
void |
setElseBlock(Statement statement) |
void |
setIfBlock(Statement statement) |
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 IfStatement(BooleanExpression booleanExpression, Statement ifBlock, Statement elseBlock)
public void visit(GroovyCodeVisitor visitor)
public BooleanExpression getBooleanExpression()
public Statement getIfBlock()
public Statement getElseBlock()
public void setBooleanExpression(BooleanExpression booleanExpression)
public void setIfBlock(Statement statement)
public void setElseBlock(Statement statement)