Class CatchBlockTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.statement.CatchBlockTreeImpl
-
- All Implemented Interfaces:
CatchBlockTree
,Tree
public class CatchBlockTreeImpl extends PHPTree implements CatchBlockTree
-
-
Constructor Summary
Constructors Constructor Description CatchBlockTreeImpl(InternalSyntaxToken catchToken, InternalSyntaxToken lParenthesis, SeparatedList<NamespaceNameTree> exceptionTypes, VariableIdentifierTreeImpl variable, InternalSyntaxToken rParenthsis, BlockTree block)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(VisitorCheck visitor)
BlockTree
block()
SyntaxToken
catchToken()
Iterator<Tree>
childrenIterator()
Creates iterator for children of this node.SyntaxToken
closeParenthesisToken()
SeparatedList<NamespaceNameTree>
exceptionTypes()
Tree.Kind
getKind()
SyntaxToken
openParenthesisToken()
VariableIdentifierTree
variable()
-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
CatchBlockTreeImpl
public CatchBlockTreeImpl(InternalSyntaxToken catchToken, InternalSyntaxToken lParenthesis, SeparatedList<NamespaceNameTree> exceptionTypes, @Nullable VariableIdentifierTreeImpl variable, InternalSyntaxToken rParenthsis, BlockTree block)
-
-
Method Detail
-
catchToken
public SyntaxToken catchToken()
- Specified by:
catchToken
in interfaceCatchBlockTree
-
openParenthesisToken
public SyntaxToken openParenthesisToken()
- Specified by:
openParenthesisToken
in interfaceCatchBlockTree
-
exceptionTypes
public SeparatedList<NamespaceNameTree> exceptionTypes()
- Specified by:
exceptionTypes
in interfaceCatchBlockTree
-
variable
@Nullable public VariableIdentifierTree variable()
- Specified by:
variable
in interfaceCatchBlockTree
-
closeParenthesisToken
public SyntaxToken closeParenthesisToken()
- Specified by:
closeParenthesisToken
in interfaceCatchBlockTree
-
block
public BlockTree block()
- Specified by:
block
in interfaceCatchBlockTree
-
accept
public void accept(VisitorCheck visitor)
-
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
-
-