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

Class NClassDef

  • All Implemented Interfaces:
    java.io.Serializable


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

      • name

        public NName name
      • bases

        public java.util.List<NNode> bases
      • body

        public NBody body
    • Constructor Detail

      • NClassDef

        public NClassDef(NName name,
                         java.util.List<NNode> bases,
                         NBlock body)
      • NClassDef

        public NClassDef(NName name,
                         java.util.List<NNode> bases,
                         NBlock body,
                         int start,
                         int end)
    • Method Detail

      • isClassDef

        public boolean isClassDef()
        Overrides:
        isClassDef 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 s)
                      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.