public class TryCatchStatement extends Statement
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 |
---|---|---|
|
public void |
addCatch(CatchStatement catchStatement) |
|
public void |
addResource(ExpressionStatement resourceStatement) |
|
public CatchStatement |
getCatchStatement(int idx)
|
|
public List<CatchStatement> |
getCatchStatements() |
|
public Statement |
getFinallyStatement() |
|
public ExpressionStatement |
getResourceStatement(int idx)
|
|
public List<ExpressionStatement> |
getResourceStatements() |
|
public Statement |
getTryStatement() |
|
public static boolean |
isResource(Expression expression) |
|
public void |
setCatchStatement(int idx, CatchStatement catchStatement) |
|
public void |
setFinallyStatement(Statement finallyStatement) |
|
public void |
setTryStatement(Statement tryStatement) |
|
public void |
visit(GroovyCodeVisitor visitor) |
Copyright © 2003-2024 The Apache Software Foundation. All rights reserved.