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 voidaccept(VisitorCheck visitor)BlockTreeblock()SyntaxTokencatchToken()Iterator<Tree>childrenIterator()Creates iterator for children of this node.SyntaxTokencloseParenthesisToken()SeparatedList<NamespaceNameTree>exceptionTypes()Tree.KindgetKind()SyntaxTokenopenParenthesisToken()VariableIdentifierTreevariable()-
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:
catchTokenin interfaceCatchBlockTree
-
openParenthesisToken
public SyntaxToken openParenthesisToken()
- Specified by:
openParenthesisTokenin interfaceCatchBlockTree
-
exceptionTypes
public SeparatedList<NamespaceNameTree> exceptionTypes()
- Specified by:
exceptionTypesin interfaceCatchBlockTree
-
variable
@Nullable public VariableIdentifierTree variable()
- Specified by:
variablein interfaceCatchBlockTree
-
closeParenthesisToken
public SyntaxToken closeParenthesisToken()
- Specified by:
closeParenthesisTokenin interfaceCatchBlockTree
-
block
public BlockTree block()
- Specified by:
blockin interfaceCatchBlockTree
-
accept
public void accept(VisitorCheck visitor)
-
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
-
-