public class SwitchStatement extends Statement
Constructor and Description |
---|
SwitchStatement(Expression expression) |
SwitchStatement(Expression expression,
java.util.List<CaseStatement> caseStatements,
Statement defaultStatement) |
SwitchStatement(Expression expression,
Statement defaultStatement) |
Modifier and Type | Method and Description |
---|---|
void |
addCase(CaseStatement caseStatement) |
CaseStatement |
getCaseStatement(int idx) |
java.util.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, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public SwitchStatement(Expression expression)
public SwitchStatement(Expression expression, Statement defaultStatement)
public SwitchStatement(Expression expression, java.util.List<CaseStatement> caseStatements, Statement defaultStatement)
public void visit(GroovyCodeVisitor visitor)
public java.util.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)