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