com.github.antlrjavaparser.api.stmt
Class TryStmt

java.lang.Object
  extended by com.github.antlrjavaparser.api.Node
      extended by com.github.antlrjavaparser.api.stmt.Statement
          extended by com.github.antlrjavaparser.api.stmt.TryStmt

public final class TryStmt
extends Statement

Author:
Julio Vilmar Gesser

Constructor Summary
TryStmt()
           
TryStmt(BlockStmt tryBlock, List<CatchClause> catchs, BlockStmt finallyBlock)
           
TryStmt(int beginLine, int beginColumn, int endLine, int endColumn, BlockStmt tryBlock, List<CatchClause> catchs, BlockStmt finallyBlock)
           
 
Method Summary
<R,A> R
accept(GenericVisitor<R,A> v, A arg)
          Accept method for visitor support.
<A> void
accept(VoidVisitor<A> v, A arg)
          Accept method for visitor support.
 List<CatchClause> getCatchs()
           
 BlockStmt getFinallyBlock()
           
 List<Resource> getResources()
           
 BlockStmt getTryBlock()
           
 void setCatchs(List<CatchClause> catchs)
           
 void setFinallyBlock(BlockStmt finallyBlock)
           
 void setResources(List<Resource> resources)
           
 void setTryBlock(BlockStmt tryBlock)
           
 
Methods inherited from class com.github.antlrjavaparser.api.Node
equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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 visitor
A - the type the argument passed for the visitor
Parameters:
v - the visitor implementation
arg - 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 implementation
arg - 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.