|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.up.primitives.Operation
org.basex.query.up.primitives.UpdatePrimitive
org.basex.query.up.primitives.DeleteNode
public final class DeleteNode
Delete primitive.
Field Summary | |
---|---|
boolean |
rec
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.UpdatePrimitive |
---|
targetPre, type |
Fields inherited from class org.basex.query.up.primitives.Operation |
---|
data, info |
Constructor Summary | |
---|---|
DeleteNode(int p,
Data d,
InputInfo i)
Constructor. |
|
DeleteNode(int p,
Data d,
InputInfo i,
boolean r)
Constructor for a delete primitive that is a product of a replaceElementContent substitution. |
Method Summary | |
---|---|
void |
addAtomics(AtomicUpdateList l)
Adds the atomic update operations for this update primitive to the given list. |
void |
merge(UpdatePrimitive p)
Merges two update primitives, as they have the same target node. |
int |
size()
Returns the total number of node operations. |
UpdatePrimitive[] |
substitute(MemData tmp)
Substitutes the update primitive if necessary. |
java.lang.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.UpdatePrimitive |
---|
getData, getInfo, getTargetNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final boolean rec
ReplaceValue
.
Constructor Detail |
---|
public DeleteNode(int p, Data d, InputInfo i)
p
- target node PRE valued
- target data referencei
- input infopublic DeleteNode(int p, Data d, InputInfo i, boolean r)
p
- target node PRE valued
- target data referencei
- input infor
- this delete is a product of a replaceElementContent substitutionMethod Detail |
---|
public void merge(UpdatePrimitive p)
UpdatePrimitive
merge
in class UpdatePrimitive
p
- primitive to merge withpublic void update(NamePool pool)
UpdatePrimitive
update
in class UpdatePrimitive
pool
- name poolpublic java.lang.String toString()
toString
in class java.lang.Object
public int size()
Operation
size
in class Operation
public UpdatePrimitive[] substitute(MemData tmp)
UpdatePrimitive
substitute
in class UpdatePrimitive
tmp
- temporary mem data
public void addAtomics(AtomicUpdateList l)
UpdatePrimitive
addAtomics
in class UpdatePrimitive
l
- list of atomic updates
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |