public class TryCatchStatement extends Statement
Constructor and Description |
---|
TryCatchStatement(Statement tryStatement,
Statement finallyStatement) |
Modifier and Type | Method and Description |
---|---|
void |
addCatch(CatchStatement catchStatement) |
void |
addResource(ExpressionStatement resourceStatement) |
CatchStatement |
getCatchStatement(int idx) |
List<CatchStatement> |
getCatchStatements() |
Statement |
getFinallyStatement() |
ExpressionStatement |
getResourceStatement(int idx) |
List<ExpressionStatement> |
getResourceStatements() |
Statement |
getTryStatement() |
static boolean |
isResource(Expression expression) |
void |
setCatchStatement(int idx,
CatchStatement catchStatement) |
void |
setFinallyStatement(Statement finallyStatement) |
void |
setTryStatement(Statement tryStatement) |
void |
visit(GroovyCodeVisitor visitor) |
addStatementLabel, copyStatementLabels, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
public void visit(GroovyCodeVisitor visitor)
public List<ExpressionStatement> getResourceStatements()
public List<CatchStatement> getCatchStatements()
public Statement getFinallyStatement()
public Statement getTryStatement()
public void addResource(ExpressionStatement resourceStatement)
public static boolean isResource(Expression expression)
public void addCatch(CatchStatement catchStatement)
public CatchStatement getCatchStatement(int idx)
public ExpressionStatement getResourceStatement(int idx)
public void setTryStatement(Statement tryStatement)
public void setCatchStatement(int idx, CatchStatement catchStatement)
public void setFinallyStatement(Statement finallyStatement)