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 void
accept(VisitorCheck visitor)
BlockTree
block()
List<CatchBlockTree>
catchBlocks()
Iterator<Tree>
childrenIterator()
Creates iterator for children of this node.BlockTree
finallyBlock()
SyntaxToken
finallyToken()
Tree.Kind
getKind()
SyntaxToken
tryToken()
-
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:PHPTree
Creates iterator for children of this node. Note that iterator may containnull
elements.- Specified by:
childrenIterator
in classPHPTree
-
tryToken
public SyntaxToken tryToken()
- Specified by:
tryToken
in interfaceTryStatementTree
-
block
public BlockTree block()
- Specified by:
block
in interfaceTryStatementTree
-
catchBlocks
public List<CatchBlockTree> catchBlocks()
- Specified by:
catchBlocks
in interfaceTryStatementTree
-
finallyToken
@Nullable public SyntaxToken finallyToken()
- Specified by:
finallyToken
in interfaceTryStatementTree
-
finallyBlock
@Nullable public BlockTree finallyBlock()
- Specified by:
finallyBlock
in interfaceTryStatementTree
-
accept
public void accept(VisitorCheck visitor)
-
-