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
Delete primitive.
- Author:
- BaseX Team 2005-21, BSD License, Lukas Kircher
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanStates 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
preFields inherited from class org.basex.query.up.primitives.DataUpdate
data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the atomic update operations for this update primitive to the given list.voidMerges two update operations pointing to the same target.voidprepare(MemData memData, QueryContext qc) Prepares this update primitive before execution.intsize()Returns the number of update operations.toString()voidUpdates 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, substituteMethods inherited from class org.basex.query.up.primitives.DataUpdate
data
-
Field Details
-
rec
public final boolean recStates if the deletion of the target node T is part of a replaceElementContent call on the parent of T, seeReplaceValue.
-
-
Constructor Details
-
DeleteNode
Constructor.- Parameters:
pre- target node PRE valuedata- target data referenceii- input info
-
-
Method Details
-
prepare
Description copied from class:NodeUpdatePrepares this update primitive before execution. This includes e.g. the preparation of insertion sequences.- Specified by:
preparein classNodeUpdate- Parameters:
memData- temporary data instanceqc- query context
-
merge
Description copied from class:UpdateMerges two update operations pointing to the same target. -
update
Description copied from class:NodeUpdateUpdates the name pool, which is used to find duplicate attributes and namespace conflicts.- Specified by:
updatein classNodeUpdate- Parameters:
pool- name pool
-
toString
-
size
public int size()Description copied from class:UpdateReturns the number of update operations. -
addAtomics
Description copied from class:NodeUpdateAdds the atomic update operations for this update primitive to the given list.- Specified by:
addAtomicsin classNodeUpdate- Parameters:
auc- list of atomic updates
-