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

Class NAttribute

  • All Implemented Interfaces:
    java.io.Serializable


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

      • target

        public NNode target
      • attr

        public NName attr
    • Constructor Detail

      • NAttribute

        public NAttribute(NNode target,
                          NName attr)
      • NAttribute

        public NAttribute(NNode target,
                          NName attr,
                          int start,
                          int end)
    • Method Detail

      • getAttributeName

        public java.lang.String getAttributeName()
      • setAttr

        public void setAttr(NName attr)
        Sets the attribute node. Used when constructing the AST.
        Throws:
        java.lang.IllegalArgumentException - if the param is null
      • getAttr

        public NName getAttr()
      • setTarget

        public void setTarget(NNode target)
        Sets the target node. Used when constructing the AST.
        Throws:
        java.lang.IllegalArgumentException - if the param is null
      • getTarget

        public NNode getTarget()
      • setAttr

        public void setAttr(Scope s,
                            NType v)
                     throws java.lang.Exception
        Assign some definite value to the attribute. Used during the name resolution pass. This method is called when this node is in the lvalue of an assignment, in which case it is called in lieu of resolve(org.python.indexer.Scope).

        Throws:
        java.lang.Exception
      • 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.