Class TryStatementTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.statement.TryStatementTreeImpl
-
- All Implemented Interfaces:
StatementTree,TryStatementTree,Tree
public class TryStatementTreeImpl extends PHPTree implements TryStatementTree
-
-
Constructor Summary
Constructors Constructor Description TryStatementTreeImpl(InternalSyntaxToken tryToken, BlockTree blockTree, List<CatchBlockTree> catchBlocks)TryStatementTreeImpl(InternalSyntaxToken tryToken, BlockTree blockTree, List<CatchBlockTree> catchBlocks, InternalSyntaxToken finallyToken, BlockTree finallyBlock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(VisitorCheck visitor)BlockTreeblock()List<CatchBlockTree>catchBlocks()Iterator<Tree>childrenIterator()Creates iterator for children of this node.BlockTreefinallyBlock()SyntaxTokenfinallyToken()Tree.KindgetKind()SyntaxTokentryToken()-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
TryStatementTreeImpl
public TryStatementTreeImpl(InternalSyntaxToken tryToken, BlockTree blockTree, List<CatchBlockTree> catchBlocks, InternalSyntaxToken finallyToken, BlockTree finallyBlock)
-
TryStatementTreeImpl
public TryStatementTreeImpl(InternalSyntaxToken tryToken, BlockTree blockTree, List<CatchBlockTree> catchBlocks)
-
-
Method Detail
-
childrenIterator
public Iterator<Tree> childrenIterator()
Description copied from class:PHPTreeCreates iterator for children of this node. Note that iterator may containnullelements.- Specified by:
childrenIteratorin classPHPTree
-
tryToken
public SyntaxToken tryToken()
- Specified by:
tryTokenin interfaceTryStatementTree
-
block
public BlockTree block()
- Specified by:
blockin interfaceTryStatementTree
-
catchBlocks
public List<CatchBlockTree> catchBlocks()
- Specified by:
catchBlocksin interfaceTryStatementTree
-
finallyToken
@Nullable public SyntaxToken finallyToken()
- Specified by:
finallyTokenin interfaceTryStatementTree
-
finallyBlock
@Nullable public BlockTree finallyBlock()
- Specified by:
finallyBlockin interfaceTryStatementTree
-
accept
public void accept(VisitorCheck visitor)
-
-