Package org.sonar.python.tree
Class PyWhileStatementTreeImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.PyWhileStatementTreeImpl
-
- All Implemented Interfaces:
PyStatementTree,PyWhileStatementTree,Tree
public class PyWhileStatementTreeImpl extends PyTree implements PyWhileStatementTree
-
-
Constructor Summary
Constructors Constructor Description PyWhileStatementTreeImpl(com.sonar.sslr.api.AstNode astNode, com.sonar.sslr.api.Token whileKeyword, PyExpressionTree condition, com.sonar.sslr.api.Token colon, PyStatementListTree body, com.sonar.sslr.api.Token elseKeyword, com.sonar.sslr.api.Token elseColon, PyStatementListTree elseBody)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PyTreeVisitor visitor)PyStatementListTreebody()List<Tree>children()com.sonar.sslr.api.Tokencolon()PyExpressionTreecondition()PyStatementListTreeelseBody()com.sonar.sslr.api.TokenelseColon()com.sonar.sslr.api.TokenelseKeyword()Tree.KindgetKind()com.sonar.sslr.api.TokenwhileKeyword()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
PyWhileStatementTreeImpl
public PyWhileStatementTreeImpl(com.sonar.sslr.api.AstNode astNode, com.sonar.sslr.api.Token whileKeyword, PyExpressionTree condition, com.sonar.sslr.api.Token colon, PyStatementListTree body, @Nullable com.sonar.sslr.api.Token elseKeyword, @Nullable com.sonar.sslr.api.Token elseColon, @Nullable PyStatementListTree elseBody)
-
-
Method Detail
-
accept
public void accept(PyTreeVisitor visitor)
-
whileKeyword
public com.sonar.sslr.api.Token whileKeyword()
- Specified by:
whileKeywordin interfacePyWhileStatementTree
-
condition
public PyExpressionTree condition()
- Specified by:
conditionin interfacePyWhileStatementTree
-
colon
public com.sonar.sslr.api.Token colon()
- Specified by:
colonin interfacePyWhileStatementTree
-
body
public PyStatementListTree body()
- Specified by:
bodyin interfacePyWhileStatementTree
-
elseKeyword
@CheckForNull public com.sonar.sslr.api.Token elseKeyword()
- Specified by:
elseKeywordin interfacePyWhileStatementTree
-
elseColon
@CheckForNull public com.sonar.sslr.api.Token elseColon()
- Specified by:
elseColonin interfacePyWhileStatementTree
-
elseBody
@CheckForNull public PyStatementListTree elseBody()
- Specified by:
elseBodyin interfacePyWhileStatementTree
-
-