Class DeleteNode
- java.lang.Object
-
- org.basex.query.up.primitives.Update
-
- org.basex.query.up.primitives.DataUpdate
-
- org.basex.query.up.primitives.node.NodeUpdate
-
- org.basex.query.up.primitives.node.DeleteNode
-
public final class DeleteNode extends NodeUpdate
Delete primitive.- Author:
- BaseX Team 2005-24, BSD License, Lukas Kircher
-
-
Field Summary
Fields Modifier and Type Field Description boolean
rec
States if the deletion of the target node T is part of a replaceElementContent call on the parent of T, seeReplaceValue
.-
Fields inherited from class org.basex.query.up.primitives.node.NodeUpdate
pre
-
Fields inherited from class org.basex.query.up.primitives.DataUpdate
data
-
-
Constructor Summary
Constructors Constructor Description DeleteNode(int pre, Data data, InputInfo info)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAtomics(AtomicUpdateCache auc)
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
prepare(MemData memData, QueryContext qc)
Prepares this update primitive before execution.int
size()
Returns the number of update operations.String
toString()
void
update(NamePool pool)
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
-
-
-
-
Field Detail
-
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, seeReplaceValue
.
-
-
Method Detail
-
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 classNodeUpdate
- Parameters:
memData
- temporary data instanceqc
- query context
-
merge
public void merge(Update update)
Description copied from class:Update
Merges two update operations pointing to the same target.
-
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 classNodeUpdate
- Parameters:
pool
- name pool
-
size
public int size()
Description copied from class:Update
Returns the number of update operations.
-
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 classNodeUpdate
- Parameters:
auc
- list of atomic updates
-
-