Interface PDeclaration

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      PDeclaration clone()
      Returns a deep clone of this PDeclarationBase node.
      PDeclaration clone​(java.util.Map<org.intocps.maestro.ast.node.INode,​org.intocps.maestro.ast.node.INode> oldToNewMap)
      Creates a deep clone of this PDeclarationBase node while putting all old node-new node relations in the map oldToNewMap.
      boolean equals​(java.lang.Object o)
      Essentially this.toString().equals(o.toString()).
      java.util.Map<java.lang.String,​java.lang.Object> getChildren​(java.lang.Boolean includeInheritedFields)
      Creates a map of all field names and their value
      LexIdentifier getName()  
      int hashCode()
      Forwarding hashCode call to Object.hashCode().
      void removeChild​(org.intocps.maestro.ast.node.INode child)
      Removes the INode child as a child of this PDeclarationBase node.
      void setName​(LexIdentifier value)
      Sets the _name child of this PDeclarationBase node.
      java.lang.String toString()  
      • Methods inherited from interface org.intocps.maestro.ast.node.INode

        apply, apply, apply, apply, getAncestor, parent, parent, replaceChild
    • Method Detail

      • toString

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

        PDeclaration clone​(java.util.Map<org.intocps.maestro.ast.node.INode,​org.intocps.maestro.ast.node.INode> oldToNewMap)
        Creates a deep clone of this PDeclarationBase node while putting all old node-new node relations in the map oldToNewMap.
        Specified by:
        clone in interface org.intocps.maestro.ast.node.INode
        Parameters:
        oldToNewMap - the map filled with the old node-new node relation
        Returns:
        a deep clone of this PDeclarationBase node
      • getChildren

        java.util.Map<java.lang.String,​java.lang.Object> getChildren​(java.lang.Boolean includeInheritedFields)
        Creates a map of all field names and their value
        Specified by:
        getChildren in interface org.intocps.maestro.ast.node.INode
        Parameters:
        includeInheritedFields - if true all inherited fields are included
        Returns:
        a a map of names to values of all fields
      • removeChild

        void removeChild​(org.intocps.maestro.ast.node.INode child)
        Removes the INode child as a child of this PDeclarationBase node. Do not call this method with any graph fields of this node. This will cause any child's with the same reference to be removed unintentionally or RuntimeExceptionwill be thrown.
        Specified by:
        removeChild in interface org.intocps.maestro.ast.node.INode
        Parameters:
        child - the child node to be removed from this PDeclarationBase node
        Throws:
        java.lang.RuntimeException - if child is not a child of this PDeclarationBase node
      • equals

        boolean equals​(java.lang.Object o)
        Essentially this.toString().equals(o.toString()).
        Overrides:
        equals in class java.lang.Object
      • hashCode

        int hashCode()
        Forwarding hashCode call to Object.hashCode().
        Overrides:
        hashCode in class java.lang.Object