Class DeleteNode


public final class DeleteNode extends NodeUpdate
Delete primitive.
Author:
BaseX Team 2005-21, BSD License, Lukas Kircher
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    States if the deletion of the target node T is part of a replaceElementContent call on the parent of T, see ReplaceValue.

    Fields inherited from class org.basex.query.up.primitives.node.NodeUpdate

    pre

    Fields inherited from class org.basex.query.up.primitives.DataUpdate

    data

    Fields inherited from class org.basex.query.up.primitives.Update

    info, type
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeleteNode(int pre, Data data, InputInfo ii)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds the atomic update operations for this update primitive to the given list.
    void
    merge(Update update)
    Merges two update operations pointing to the same target.
    void
    Prepares this update primitive before execution.
    int
    Returns the number of update operations.
     
    void
    Updates the name pool, which is used to find duplicate attributes and namespace conflicts.

    Methods inherited from class org.basex.query.up.primitives.node.NodeUpdate

    node, substitute

    Methods inherited from class org.basex.query.up.primitives.DataUpdate

    data

    Methods inherited from class org.basex.query.up.primitives.Update

    info

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • rec

      public final boolean rec
      States if the deletion of the target node T is part of a replaceElementContent call on the parent of T, see ReplaceValue.
  • Constructor Details

    • DeleteNode

      public DeleteNode(int pre, Data data, InputInfo ii)
      Constructor.
      Parameters:
      pre - target node PRE value
      data - target data reference
      ii - input info
  • Method Details

    • prepare

      public void prepare(MemData memData, QueryContext qc)
      Description copied from class: NodeUpdate
      Prepares this update primitive before execution. This includes e.g. the preparation of insertion sequences.
      Specified by:
      prepare in class NodeUpdate
      Parameters:
      memData - temporary data instance
      qc - query context
    • merge

      public void merge(Update update)
      Description copied from class: Update
      Merges two update operations pointing to the same target.
      Specified by:
      merge in class Update
      Parameters:
      update - operation to merge with
    • update

      public void update(NamePool pool)
      Description copied from class: NodeUpdate
      Updates the name pool, which is used to find duplicate attributes and namespace conflicts.
      Specified by:
      update in class NodeUpdate
      Parameters:
      pool - name pool
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • size

      public int size()
      Description copied from class: Update
      Returns the number of update operations.
      Specified by:
      size in class Update
      Returns:
      number of updates
    • addAtomics

      public void addAtomics(AtomicUpdateCache auc)
      Description copied from class: NodeUpdate
      Adds the atomic update operations for this update primitive to the given list.
      Specified by:
      addAtomics in class NodeUpdate
      Parameters:
      auc - list of atomic updates