com.github.antlrjavaparser.api.stmt
Class TryStmt
java.lang.Object
com.github.antlrjavaparser.api.Node
com.github.antlrjavaparser.api.stmt.Statement
com.github.antlrjavaparser.api.stmt.TryStmt
public final class TryStmt
- extends Statement
- Author:
- Julio Vilmar Gesser
Methods inherited from class com.github.antlrjavaparser.api.Node |
equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toString |
TryStmt
public TryStmt()
TryStmt
public TryStmt(BlockStmt tryBlock,
List<CatchClause> catchs,
BlockStmt finallyBlock)
TryStmt
public TryStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
BlockStmt tryBlock,
List<CatchClause> catchs,
BlockStmt finallyBlock)
accept
public <R,A> R accept(GenericVisitor<R,A> v,
A arg)
- Description copied from class:
Node
- Accept method for visitor support.
- Specified by:
accept
in class Node
- Type Parameters:
R
- the type the return value of the visitorA
- the type the argument passed for the visitor- Parameters:
v
- the visitor implementationarg
- any value relevant for the visitor
- Returns:
- the result of the visit
accept
public <A> void accept(VoidVisitor<A> v,
A arg)
- Description copied from class:
Node
- Accept method for visitor support.
- Specified by:
accept
in class Node
- Type Parameters:
A
- the type the argument passed for the visitor- Parameters:
v
- the visitor implementationarg
- any value relevant for the visitor
getCatchs
public List<CatchClause> getCatchs()
getFinallyBlock
public BlockStmt getFinallyBlock()
getTryBlock
public BlockStmt getTryBlock()
getResources
public List<Resource> getResources()
setCatchs
public void setCatchs(List<CatchClause> catchs)
setFinallyBlock
public void setFinallyBlock(BlockStmt finallyBlock)
setTryBlock
public void setTryBlock(BlockStmt tryBlock)
setResources
public void setResources(List<Resource> resources)
Copyright © 2013. All Rights Reserved.