Represents a try { ... } catch () finally {} statement in Groovy
Fields inherited from class | Fields |
---|---|
interface Statement |
CLOSE_CURRENT_RESULT, KEEP_CURRENT_RESULT, CLOSE_ALL_RESULTS, SUCCESS_NO_INFO, EXECUTE_FAILED, RETURN_GENERATED_KEYS, NO_GENERATED_KEYS |
Constructor and description |
---|
TryCatchStatement
(Statement tryStatement, Statement finallyStatement) |
Type Params | Return Type | Name 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) |
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.