public class SwitchStatement extends Statement
Constructor and Description |
---|
SwitchStatement(Expression expression) |
SwitchStatement(Expression expression,
List<CaseStatement> caseStatements,
Statement defaultStatement) |
SwitchStatement(Expression expression,
Statement defaultStatement) |
Modifier and Type | Method and Description |
---|---|
void |
addCase(CaseStatement caseStatement) |
CaseStatement |
getCaseStatement(int idx) |
List<CaseStatement> |
getCaseStatements() |
Statement |
getDefaultStatement() |
Expression |
getExpression() |
void |
setDefaultStatement(Statement defaultStatement) |
void |
setExpression(Expression e) |
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 SwitchStatement(Expression expression)
public SwitchStatement(Expression expression, Statement defaultStatement)
public SwitchStatement(Expression expression, List<CaseStatement> caseStatements, Statement defaultStatement)
public void visit(GroovyCodeVisitor visitor)
public List<CaseStatement> getCaseStatements()
public Expression getExpression()
public void setExpression(Expression e)
public Statement getDefaultStatement()
public void setDefaultStatement(Statement defaultStatement)
public void addCase(CaseStatement caseStatement)
public CaseStatement getCaseStatement(int idx)