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

Class NListComp

  • All Implemented Interfaces:
    java.io.Serializable


    public class NListComp
    extends NNode
    See Also:
    Serialized Form
    • Constructor Detail

      • NListComp

        public NListComp(NNode elt,
                         java.util.List<NComprehension> generators,
                         int start,
                         int end)
    • Method Detail

      • resolve

        public NType resolve(Scope s)
                      throws java.lang.Exception
        Python's list comprehension will bind the variables used in generators. This will erase the original values of the variables even after the comprehension.
        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.