Package org.sonar.python.tree
Class ForStatementImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.ForStatementImpl
-
- All Implemented Interfaces:
ForStatement,Statement,Tree
public class ForStatementImpl extends PyTree implements ForStatement
-
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Constructor Summary
Constructors Constructor Description ForStatementImpl(Token forKeyword, List<Expression> expressions, Token inKeyword, List<Expression> testExpressions, Token colon, Token firstNewLine, Token firstIndent, StatementList body, Token firstDedent, ElseClause elseClause, Token asyncKeyword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)TokenasyncKeyword()StatementListbody()Tokencolon()List<Tree>computeChildren()ElseClauseelseClause()List<Expression>expressions()TokenforKeyword()Tree.KindgetKind()TokeninKeyword()booleanisAsync()List<Expression>testExpressions()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
ForStatementImpl
public ForStatementImpl(Token forKeyword, List<Expression> expressions, Token inKeyword, List<Expression> testExpressions, Token colon, @Nullable Token firstNewLine, @Nullable Token firstIndent, StatementList body, @Nullable Token firstDedent, @Nullable ElseClause elseClause, @Nullable Token asyncKeyword)
-
-
Method Detail
-
accept
public void accept(TreeVisitor visitor)
-
forKeyword
public Token forKeyword()
- Specified by:
forKeywordin interfaceForStatement
-
expressions
public List<Expression> expressions()
- Specified by:
expressionsin interfaceForStatement
-
inKeyword
public Token inKeyword()
- Specified by:
inKeywordin interfaceForStatement
-
testExpressions
public List<Expression> testExpressions()
- Specified by:
testExpressionsin interfaceForStatement
-
colon
public Token colon()
- Specified by:
colonin interfaceForStatement
-
body
public StatementList body()
- Specified by:
bodyin interfaceForStatement
-
elseClause
@CheckForNull public ElseClause elseClause()
- Specified by:
elseClausein interfaceForStatement
-
isAsync
public boolean isAsync()
- Specified by:
isAsyncin interfaceForStatement
-
asyncKeyword
@CheckForNull public Token asyncKeyword()
- Specified by:
asyncKeywordin interfaceForStatement
-
-