Top Description Inners Fields Constructors Methods
org.python.indexer.ast

public Class NBoolOp

extends NNode
Class Inheritance
Imports
org.python.indexer.Scope, org.python.indexer.types.NType, .NUnionType, .NUnknownType, java.util.List

Represents the "and"/"or" operators.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
pack-priv NBoolOp.OpType
pack-priv static final long
public List<NNode>
Inherited from org.python.indexer.ast.NNode:
parent

Constructor Summary

AccessConstructor and Description
public
public
NBoolOp(NBoolOp.OpType op, List<NNode> values, int start, int end)

Method Summary

Modifier and TypeMethod and Description
public NType
resolve(Scope s)

Overrides org.python.indexer.ast.NNode.resolve.

Node should set the resolved type in its type field and also return it.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
visit(NNodeVisitor
the object to call with this node. If the visitor returns true, the node also passes its children to the visitor.
v
)

Implements abstract org.python.indexer.ast.NNode.visit.

Visits this node and optionally its children.

Inherited from org.python.indexer.ast.NNode:
addChildrenaddChildrenaddErroraddErroraddTypeaddWarningaddWarningbindNamesbindsNameendgetAstRootgetDeepestNodeAtOffsetgetEnclosingNamespacegetFilegetParentgetTablegetTypeisCallisClassDefisFunctionDefisLambdaisModuleisNamelengthresolveExprresolveListresolveListAsUnionsetEndsetParentsetStartsetTypestartvisitNodevisitNodeList

Field Detail

opback to summary
pack-priv NBoolOp.OpType op
serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides org.python.indexer.ast.NNode.serialVersionUID.

valuesback to summary
public List<NNode> values

Constructor Detail

NBoolOpback to summary
public NBoolOp(NBoolOp.OpType op, List<NNode> values)
NBoolOpback to summary
public NBoolOp(NBoolOp.OpType op, List<NNode> values, int start, int end)

Method Detail

resolveback to summary
public NType resolve(Scope s) throws Exception

Overrides org.python.indexer.ast.NNode.resolve.

Doc from org.python.indexer.ast.NNode.resolve.

Node should set the resolved type in its type field and also return it.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
visitback to summary
public void visit(NNodeVisitor v)

Implements abstract org.python.indexer.ast.NNode.visit.

Doc from org.python.indexer.ast.NNode.visit.

Visits this node and optionally its children.

Parameters
v:NNodeVisitor

the object to call with this node. If the visitor returns true, the node also passes its children to the visitor.

Annotations
@Override
org.python.indexer.ast back to summary

public final Enum NBoolOp.OpType

extends Enum<NBoolOp.OpType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final NBoolOp.OpType
public static final NBoolOp.OpType
public static final NBoolOp.OpType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static NBoolOp.OpType
public static NBoolOp.OpType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ANDback to summary
public static final NBoolOp.OpType AND
ORback to summary
public static final NBoolOp.OpType OR
UNDEFINEDback to summary
public static final NBoolOp.OpType UNDEFINED

Constructor Detail

OpTypeback to summary
private OpType()

Method Detail

valueOfback to summary
public static NBoolOp.OpType valueOf(String name)
valuesback to summary
public static NBoolOp.OpType[] values()