org.codehaus.groovy.ast.stmt
Class TryCatchStatement
java.lang.Object
   org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.ASTNode
       org.codehaus.groovy.ast.stmt.Statement
org.codehaus.groovy.ast.stmt.Statement
           org.codehaus.groovy.ast.stmt.TryCatchStatement
org.codehaus.groovy.ast.stmt.TryCatchStatement
- public class TryCatchStatement 
- extends Statement
Represents a try { ... } catch () finally {} statement in Groovy
- Version:
- $Revision: 15807 $
- Author:
- James Strachan
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TryCatchStatement
public TryCatchStatement(Statement tryStatement,
                         Statement finallyStatement)
visit
public void visit(GroovyCodeVisitor visitor)
- 
- Overrides:
- visitin class- ASTNode
 
- 
 
getCatchStatements
public List<CatchStatement> getCatchStatements()
- 
 
getFinallyStatement
public Statement getFinallyStatement()
- 
 
getTryStatement
public Statement getTryStatement()
- 
 
addCatch
public void addCatch(CatchStatement catchStatement)
- 
 
getCatchStatement
public CatchStatement getCatchStatement(int idx)
- 
- Returns:
- the catch statement of the given index or null
 
setTryStatement
public void setTryStatement(Statement tryStatement)
- 
 
setCatchStatement
public void setCatchStatement(int idx,
                              CatchStatement catchStatement)
- 
 
setFinallyStatement
public void setFinallyStatement(Statement finallyStatement)
-