Class MatchDefaultClauseTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.expression.MatchDefaultClauseTreeImpl
-
- All Implemented Interfaces:
MatchClauseTree,MatchDefaultClauseTree,Tree
public class MatchDefaultClauseTreeImpl extends PHPTree implements MatchDefaultClauseTree
-
-
Constructor Summary
Constructors Constructor Description MatchDefaultClauseTreeImpl(SyntaxToken defaultToken, com.sonar.sslr.api.typed.Optional<SyntaxToken> trailingComma, SyntaxToken doubleArrowToken, ExpressionTree expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(VisitorCheck visitor)Iterator<Tree>childrenIterator()Creates iterator for children of this node.SyntaxTokendefaultToken()SyntaxTokendoubleArrowToken()ExpressionTreeexpression()Tree.KindgetKind()SyntaxTokentrailingComma()-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
MatchDefaultClauseTreeImpl
public MatchDefaultClauseTreeImpl(SyntaxToken defaultToken, com.sonar.sslr.api.typed.Optional<SyntaxToken> trailingComma, SyntaxToken doubleArrowToken, ExpressionTree expression)
-
-
Method Detail
-
accept
public void accept(VisitorCheck visitor)
-
defaultToken
public SyntaxToken defaultToken()
- Specified by:
defaultTokenin interfaceMatchDefaultClauseTree
-
trailingComma
@Nullable public SyntaxToken trailingComma()
- Specified by:
trailingCommain interfaceMatchDefaultClauseTree
-
doubleArrowToken
public SyntaxToken doubleArrowToken()
Description copied from interface:MatchDefaultClauseTree- Specified by:
doubleArrowTokenin interfaceMatchClauseTree- Specified by:
doubleArrowTokenin interfaceMatchDefaultClauseTree
-
expression
public ExpressionTree expression()
- Specified by:
expressionin interfaceMatchClauseTree- Specified by:
expressionin interfaceMatchDefaultClauseTree
-
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
-
-