org.python.indexer.ast
Class NLambda
- java.lang.Object
-
- org.python.indexer.ast.NNode
-
- org.python.indexer.ast.NFunctionDef
-
- org.python.indexer.ast.NLambda
-
- All Implemented Interfaces:
- java.io.Serializable
public class NLambda extends NFunctionDef
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description NLambda(java.util.List<NNode> args, NNode body, java.util.List<NNode> defaults, NName varargs, NName kwargs)NLambda(java.util.List<NNode> args, NNode body, java.util.List<NNode> defaults, NName varargs, NName kwargs, int start, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanisLambda()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.NFunctionDef
bindsName, getDecoratorList, isFunctionDef, setDecoratorList
-
Methods inherited from class org.python.indexer.ast.NNode
addChildren, addChildren, addType, end, getAstRoot, getDeepestNodeAtOffset, getEnclosingNamespace, getFile, getParent, getTable, getType, isCall, isClassDef, isModule, isName, length, resolveExpr, setEnd, setParent, setStart, setType, start
-
-
-
-
Constructor Detail
-
NLambda
public NLambda(java.util.List<NNode> args, NNode body, java.util.List<NNode> defaults, NName varargs, NName kwargs)
-
-
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.- Overrides:
resolvein classNFunctionDef- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classNFunctionDef
-
visit
public void visit(NNodeVisitor v)
Description copied from class:NNodeVisits this node and optionally its children.- Overrides:
visitin classNFunctionDef- Parameters:
v- the object to call with this node. If the visitor returnstrue, the node also passes its children to the visitor.
-
-
DMelt 3.0 © DataMelt by jWork.ORG