org.python.indexer.ast
Class NComprehension
- java.lang.Object
-
- org.python.indexer.ast.NNode
-
- org.python.indexer.ast.NComprehension
-
- All Implemented Interfaces:
- java.io.Serializable
public class NComprehension extends NNode
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description java.util.List<NNode>ifsNNodeiterNNodetarget
-
Constructor Summary
Constructors Constructor and Description NComprehension(NNode target, NNode iter, java.util.List<NNode> ifs)NComprehension(NNode target, NNode iter, java.util.List<NNode> ifs, int start, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanbindsName()Returnstrueif this is a name-binding node.NTyperesolve(Scope s)Node should set the resolved type in itsNNode.typefield and also return it.java.lang.StringtoString()voidvisit(NNodeVisitor v)Visits this node and optionally its children.-
Methods inherited from class org.python.indexer.ast.NNode
addChildren, addChildren, addType, end, getAstRoot, getDeepestNodeAtOffset, getEnclosingNamespace, getFile, getParent, getTable, getType, isCall, isClassDef, isFunctionDef, isLambda, isModule, isName, length, resolveExpr, setEnd, setParent, setStart, setType, start
-
-
-
-
Method Detail
-
bindsName
public boolean bindsName()
Description copied from class:NNodeReturnstrueif this is a name-binding node. Includes functions/lambdas, function/lambda params, classes, assignments, imports, and implicit assignment via for statements and except clauses.
-
resolve
public NType resolve(Scope s) throws java.lang.Exception
Description copied from class:NNodeNode should set the resolved type in itsNNode.typefield and also return it.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
visit
public void visit(NNodeVisitor v)
Description copied from class:NNodeVisits this node and optionally its children.
-
-
DMelt 3.0 © DataMelt by jWork.ORG