Class SwitchStatementTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.statement.SwitchStatementTreeImpl
-
- All Implemented Interfaces:
StatementTree
,SwitchStatementTree
,Tree
public class SwitchStatementTreeImpl extends PHPTree implements SwitchStatementTree
-
-
Constructor Summary
Constructors Constructor Description SwitchStatementTreeImpl(InternalSyntaxToken switchToken, ParenthesisedExpressionTree expression, InternalSyntaxToken openCurlyBraceToken, InternalSyntaxToken semicolonToken, List<SwitchCaseClauseTree> cases, InternalSyntaxToken closeCurlyBraceToken)
SwitchStatementTreeImpl(InternalSyntaxToken switchToken, ParenthesisedExpressionTree expression, InternalSyntaxToken colonToken, InternalSyntaxToken semicolonToken, List<SwitchCaseClauseTree> cases, InternalSyntaxToken endswitchToken, InternalSyntaxToken eosToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(VisitorCheck visitor)
List<SwitchCaseClauseTree>
cases()
Iterator<Tree>
childrenIterator()
Creates iterator for children of this node.SyntaxToken
closeCurlyBraceToken()
SyntaxToken
colonToken()
SyntaxToken
endswitchToken()
SyntaxToken
eosToken()
ParenthesisedExpressionTree
expression()
Tree.Kind
getKind()
SyntaxToken
openCurlyBraceToken()
SyntaxToken
semicolonToken()
SyntaxToken
switchToken()
-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
SwitchStatementTreeImpl
public SwitchStatementTreeImpl(InternalSyntaxToken switchToken, ParenthesisedExpressionTree expression, InternalSyntaxToken openCurlyBraceToken, @Nullable InternalSyntaxToken semicolonToken, List<SwitchCaseClauseTree> cases, InternalSyntaxToken closeCurlyBraceToken)
-
SwitchStatementTreeImpl
public SwitchStatementTreeImpl(InternalSyntaxToken switchToken, ParenthesisedExpressionTree expression, InternalSyntaxToken colonToken, @Nullable InternalSyntaxToken semicolonToken, List<SwitchCaseClauseTree> cases, InternalSyntaxToken endswitchToken, InternalSyntaxToken eosToken)
-
-
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
-
switchToken
public SyntaxToken switchToken()
- Specified by:
switchToken
in interfaceSwitchStatementTree
-
expression
public ParenthesisedExpressionTree expression()
- Specified by:
expression
in interfaceSwitchStatementTree
-
openCurlyBraceToken
@Nullable public SyntaxToken openCurlyBraceToken()
- Specified by:
openCurlyBraceToken
in interfaceSwitchStatementTree
-
colonToken
@Nullable public SyntaxToken colonToken()
- Specified by:
colonToken
in interfaceSwitchStatementTree
-
semicolonToken
@Nullable public SyntaxToken semicolonToken()
- Specified by:
semicolonToken
in interfaceSwitchStatementTree
-
cases
public List<SwitchCaseClauseTree> cases()
- Specified by:
cases
in interfaceSwitchStatementTree
-
closeCurlyBraceToken
@Nullable public SyntaxToken closeCurlyBraceToken()
- Specified by:
closeCurlyBraceToken
in interfaceSwitchStatementTree
-
endswitchToken
@Nullable public SyntaxToken endswitchToken()
- Specified by:
endswitchToken
in interfaceSwitchStatementTree
-
eosToken
@Nullable public SyntaxToken eosToken()
- Specified by:
eosToken
in interfaceSwitchStatementTree
-
accept
public void accept(VisitorCheck visitor)
-
-