Package org.sonar.java.model.statement
Class WhileStatementTreeImpl
- java.lang.Object
-
- org.sonar.java.model.JavaTree
-
- org.sonar.java.model.statement.WhileStatementTreeImpl
-
- All Implemented Interfaces:
StatementTree
,Tree
,WhileStatementTree
public class WhileStatementTreeImpl extends JavaTree implements WhileStatementTree
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.java.model.JavaTree
JavaTree.AnnotatedTypeTree, JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl
-
-
Constructor Summary
Constructors Constructor Description WhileStatementTreeImpl(InternalSyntaxToken whileKeyword, InternalSyntaxToken openParenToken, ExpressionTree condition, InternalSyntaxToken closeParenToken, StatementTree statement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(TreeVisitor visitor)
Iterable<Tree>
children()
Creates iterable for children of this node.SyntaxToken
closeParenToken()
ExpressionTree
condition()
Tree.Kind
kind()
SyntaxToken
openParenToken()
StatementTree
statement()
SyntaxToken
whileKeyword()
-
Methods inherited from class org.sonar.java.model.JavaTree
firstToken, getChildren, getLine, is, isLeaf, lastToken, parent, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.plugins.java.api.tree.Tree
firstToken, is, lastToken, parent
-
-
-
-
Constructor Detail
-
WhileStatementTreeImpl
public WhileStatementTreeImpl(InternalSyntaxToken whileKeyword, InternalSyntaxToken openParenToken, ExpressionTree condition, InternalSyntaxToken closeParenToken, StatementTree statement)
-
-
Method Detail
-
whileKeyword
public SyntaxToken whileKeyword()
- Specified by:
whileKeyword
in interfaceWhileStatementTree
-
openParenToken
public SyntaxToken openParenToken()
- Specified by:
openParenToken
in interfaceWhileStatementTree
-
condition
public ExpressionTree condition()
- Specified by:
condition
in interfaceWhileStatementTree
-
closeParenToken
public SyntaxToken closeParenToken()
- Specified by:
closeParenToken
in interfaceWhileStatementTree
-
statement
public StatementTree statement()
- Specified by:
statement
in interfaceWhileStatementTree
-
accept
public void accept(TreeVisitor visitor)
-
-