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

public Class NBody

extends NBlock
Class Inheritance
Imports
org.python.indexer.Indexer, .Scope, org.python.indexer.types.NType, java.util.List

An NBlock variant used for the bodies of functions, lambdas, classes and modules.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
pack-priv static final long
Inherited from org.python.indexer.ast.NBlock:
seq

Constructor Summary

AccessConstructor and Description
public
NBody(NBlock block)

public
public
NBody(List<NNode> seq, int start, int end)

Method Summary

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

Overrides org.python.indexer.ast.NBlock.resolve.

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

Inherited from org.python.indexer.ast.NBlock:
toStringvisit

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides org.python.indexer.ast.NBlock.serialVersionUID.

Constructor Detail

NBodyback to summary
public NBody(NBlock block)
NBodyback to summary
public NBody(List<NNode> seq)
NBodyback to summary
public NBody(List<NNode> seq, int start, int end)

Method Detail

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

Overrides org.python.indexer.ast.NBlock.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
org.python.indexer.ast back to summary

private Class NBody.GlobalFinder

extends DefaultNodeVisitor
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Scope
Inherited from org.python.indexer.ast.DefaultNodeVisitor:
traverseIntoNodes

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public boolean
public boolean
Inherited from org.python.indexer.ast.DefaultNodeVisitor:
stopTraversalvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisit

Field Detail

scopeback to summary
private Scope scope

Constructor Detail

GlobalFinderback to summary
public GlobalFinder(Scope scope)

Method Detail

visitback to summary
public boolean visit(NGlobal n)

Overrides org.python.indexer.ast.DefaultNodeVisitor.visit.

Implements org.python.indexer.ast.NNodeVisitor.visit.

Annotations
@Override
visitback to summary
public boolean visit(NFunctionDef n)

Overrides org.python.indexer.ast.DefaultNodeVisitor.visit.

Implements org.python.indexer.ast.NNodeVisitor.visit.

Annotations
@Override
visitback to summary
public boolean visit(NLambda n)

Overrides org.python.indexer.ast.DefaultNodeVisitor.visit.

Implements org.python.indexer.ast.NNodeVisitor.visit.

Annotations
@Override
visitback to summary
public boolean visit(NClassDef n)

Overrides org.python.indexer.ast.DefaultNodeVisitor.visit.

Implements org.python.indexer.ast.NNodeVisitor.visit.

Annotations
@Override