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 voidaccept(VisitorCheck visitor)Iterator<Tree>childrenIterator()Creates iterator for children of this node.SyntaxTokencolonToken()ParenthesisedExpressionTreecondition()SyntaxTokenendWhileToken()SyntaxTokeneosToken()Tree.KindgetKind()List<StatementTree>statements()SyntaxTokenwhileToken()-
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:PHPTreeCreates iterator for children of this node. Note that iterator may containnullelements.- Specified by:
childrenIteratorin classPHPTree
-
whileToken
public SyntaxToken whileToken()
- Specified by:
whileTokenin interfaceWhileStatementTree
-
condition
public ParenthesisedExpressionTree condition()
- Specified by:
conditionin interfaceWhileStatementTree
-
colonToken
@Nullable public SyntaxToken colonToken()
- Specified by:
colonTokenin interfaceWhileStatementTree
-
statements
public List<StatementTree> statements()
- Specified by:
statementsin interfaceWhileStatementTree
-
endWhileToken
@Nullable public SyntaxToken endWhileToken()
- Specified by:
endWhileTokenin interfaceWhileStatementTree
-
eosToken
@Nullable public SyntaxToken eosToken()
- Specified by:
eosTokenin interfaceWhileStatementTree
-
accept
public void accept(VisitorCheck visitor)
-
-