public class TryCatchStatement extends Statement
Constructor and Description |
---|
TryCatchStatement(Statement tryStatement,
Statement finallyStatement) |
Modifier and Type | Method and Description |
---|---|
void |
addCatch(CatchStatement catchStatement) |
CatchStatement |
getCatchStatement(int idx) |
List<CatchStatement> |
getCatchStatements() |
Statement |
getFinallyStatement() |
Statement |
getTryStatement() |
void |
setCatchStatement(int idx,
CatchStatement catchStatement) |
void |
setFinallyStatement(Statement finallyStatement) |
void |
setTryStatement(Statement tryStatement) |
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 void visit(GroovyCodeVisitor visitor)
public List<CatchStatement> getCatchStatements()
public Statement getFinallyStatement()
public Statement getTryStatement()
public void addCatch(CatchStatement catchStatement)
public CatchStatement getCatchStatement(int idx)
public void setTryStatement(Statement tryStatement)
public void setCatchStatement(int idx, CatchStatement catchStatement)
public void setFinallyStatement(Statement finallyStatement)