Class For_
INTERNAL: See the class For
for further information.
Import path
import python
Indirect supertypes
Known direct subtypes
Predicates
getAStmt |
Gets a statement of this for statement. |
getAnOrelse |
Gets an else statement of this for statement. |
getBody |
Gets the body of this for statement. |
getIter |
Gets the iterable of this for statement. |
getOrelse |
Gets the else block of this for statement. |
getOrelse |
Gets the nth else statement of this for statement. |
getStmt |
Gets the nth statement of this for statement. |
getTarget |
Gets the target of this for statement. |
isAsync |
Whether the async property of this for statement is true. |
toString |
Inherited predicates
contains |
Whether this contains |
from AstNode |
containsInScope |
Whether this contains |
from AstNode |
getAChildNode |
Gets a child node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt(). |
from Stmt |
getAFlowNode |
Gets a flow node corresponding directly to this node. NOTE: For some statements and other purely syntactic elements, there may not be a |
from AstNode |
getASubExpression |
Gets an immediate (non-nested) sub-expression of this statement |
from Stmt |
getASubPattern |
Gets an immediate (non-nested) sub-pattern of this statement |
from Stmt |
getASubStatement |
Gets an immediate (non-nested) sub-statement of this statement |
from Stmt |
getAnEntryNode |
Gets a control flow node for an entry into this statement. |
from Stmt |
getEnclosingModule |
Gets the module enclosing this statement |
from Stmt |
getLastStatement |
Gets the final statement in this statement, ordered by location. Will be this statement if not a compound statement. |
from Stmt |
getLocation | from Stmt | |
getParent |
Gets a parent of this statement |
from Stmt_ |
getParentNode |
Gets the parent node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt() applied to the parent. |
from AstNode |
getScope |
Gets the scope immediately enclosing this statement |
from Stmt |
isArtificial |
Whether this syntactic element is artificial, that is it is generated by the compiler and is not present in the source |
from AstNode |
isUnreachable |
Holds if this statement cannot be reached |
from Stmt |