org.python.indexer.ast
Class NBoolOp
- java.lang.Object
-
- org.python.indexer.ast.NNode
-
- org.python.indexer.ast.NBoolOp
-
- All Implemented Interfaces:
- java.io.Serializable
public class NBoolOp extends NNode
Represents the "and"/"or" operators.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classNBoolOp.OpType
-
Constructor Summary
Constructors Constructor and Description NBoolOp(NBoolOp.OpType op, java.util.List<NNode> values)NBoolOp(NBoolOp.OpType op, java.util.List<NNode> values, int start, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description 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, bindsName, end, getAstRoot, getDeepestNodeAtOffset, getEnclosingNamespace, getFile, getParent, getTable, getType, isCall, isClassDef, isFunctionDef, isLambda, isModule, isName, length, resolveExpr, setEnd, setParent, setStart, setType, start
-
-
-
-
Field Detail
-
values
public java.util.List<NNode> values
-
-
Constructor Detail
-
NBoolOp
public NBoolOp(NBoolOp.OpType op, java.util.List<NNode> values)
-
NBoolOp
public NBoolOp(NBoolOp.OpType op, java.util.List<NNode> values, int start, int end)
-
-
Method Detail
-
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