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) |
getStatementLabel, isEmpty, setStatementLabel
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getText, 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)