Documentation of 'org.python.indexer.ast.NFunctionDef' Java class
NFunctionDef
org.python.indexer.ast

Class NFunctionDef

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    NLambda


    public class NFunctionDef
    extends NNode
    See Also:
    Serialized Form
    • Field Detail

      • name

        public NName name
      • args

        public java.util.List<NNode> args
      • defaults

        public java.util.List<NNode> defaults
      • varargs

        public NName varargs
      • kwargs

        public NName kwargs
      • body

        public NNode body
    • Constructor Detail

      • NFunctionDef

        public NFunctionDef(NName name,
                            java.util.List<NNode> args,
                            NBlock body,
                            java.util.List<NNode> defaults,
                            NName varargs,
                            NName kwargs)
      • NFunctionDef

        public NFunctionDef(NName name,
                            java.util.List<NNode> args,
                            NBlock body,
                            java.util.List<NNode> defaults,
                            NName varargs,
                            NName kwargs,
                            int start,
                            int end)
    • Method Detail

      • setDecoratorList

        public void setDecoratorList(java.util.List<NNode> decoratorList)
      • getDecoratorList

        public java.util.List<NNode> getDecoratorList()
      • isFunctionDef

        public boolean isFunctionDef()
        Overrides:
        isFunctionDef in class NNode
      • bindsName

        public boolean bindsName()
        Description copied from class: NNode
        Returns true if this is a name-binding node. Includes functions/lambdas, function/lambda params, classes, assignments, imports, and implicit assignment via for statements and except clauses.
        Overrides:
        bindsName in class NNode
        See Also:
        PEP 227
      • resolve

        public NType resolve(Scope outer)
                      throws java.lang.Exception
        Description copied from class: NNode
        Node should set the resolved type in its NNode.type field and also return it.
        Overrides:
        resolve in class NNode
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • visit

        public void visit(NNodeVisitor v)
        Description copied from class: NNode
        Visits this node and optionally its children.

        Specified by:
        visit in class NNode
        Parameters:
        v - the object to call with this node. If the visitor returns true, the node also passes its children to the visitor.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.