Top Fields Constructors Methods
org.python.indexer.ast

public Class NLambda

extends NFunctionDef
Class Inheritance
Imports
org.python.indexer.Indexer, .NBinding, .Scope, org.python.indexer.types.NFuncType, .NTupleType, .NType, .NUnknownType, java.util.List

Field Summary

Modifier and TypeField and Description
private NName
pack-priv static final long
Inherited from org.python.indexer.ast.NFunctionDef:
argsbodydefaultskwargsnamevarargs

Constructor Summary

AccessConstructor and Description
public
NLambda(List<NNode> args, NNode body, List<NNode> defaults, NName varargs, NName kwargs)

public
NLambda(List<NNode> args, NNode body, List<NNode> defaults, NName varargs, NName kwargs, int start, int end)

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
protected String
getBindingName(Scope s)

Overrides org.python.indexer.ast.NFunctionDef.getBindingName.

Returns the name of the function for indexing/qname purposes.

public boolean
public NType
resolve(Scope s)

Overrides org.python.indexer.ast.NFunctionDef.resolve.

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

public String
toString()

Overrides org.python.indexer.ast.NFunctionDef.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
)

Overrides org.python.indexer.ast.NFunctionDef.visit.

Visits this node and optionally its children.

Inherited from org.python.indexer.ast.NFunctionDef:
addReadOnlyAttraddSpecialAttrbindFunctionDefaultsbindFunctionParamsbindNamesbindsNamegetArgTypegetDecoratorListisFunctionDefsetDecoratorList

Field Detail

fnameback to summary
private NName fname
serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides org.python.indexer.ast.NFunctionDef.serialVersionUID.

Constructor Detail

NLambdaback to summary
public NLambda(List<NNode> args, NNode body, List<NNode> defaults, NName varargs, NName kwargs)
NLambdaback to summary
public NLambda(List<NNode> args, NNode body, List<NNode> defaults, NName varargs, NName kwargs, int start, int end)

Method Detail

bindFunctionNameback to summary
protected void bindFunctionName(Scope owner) throws Exception

Overrides org.python.indexer.ast.NFunctionDef.bindFunctionName.

Annotations
@Override
bindMethodAttrsback to summary
protected void bindMethodAttrs(Scope owner) throws Exception

Overrides org.python.indexer.ast.NFunctionDef.bindMethodAttrs.

Annotations
@Override
getBindingNameback to summary
protected String getBindingName(Scope s)

Overrides org.python.indexer.ast.NFunctionDef.getBindingName.

Returns the name of the function for indexing/qname purposes.

Annotations
@Override
isLambdaback to summary
public boolean isLambda()

Overrides org.python.indexer.ast.NNode.isLambda.

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

Overrides org.python.indexer.ast.NFunctionDef.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 org.python.indexer.ast.NFunctionDef.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)

Overrides org.python.indexer.ast.NFunctionDef.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