|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xquery.util.NodeBuilder
public final class NodeBuilder
Node Builder.
| Field Summary | |
|---|---|
Node[] |
list
Node array. |
int |
size
Number of entries. |
| Constructor Summary | |
|---|---|
NodeBuilder(boolean ord)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Node n)
Adds a single node. |
void |
add(Node[] i,
int s)
Adds several items. |
void |
del(int pos)
Deletes a value at the specified position. |
Item |
finish()
Returns a sequence or the atomic item if only one item exists. |
void |
reset()
Resets the node builder. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Node[] list
public int size
| Constructor Detail |
|---|
public NodeBuilder(boolean ord)
ord - if set to true, all nodes are supposed to be added in order.| Method Detail |
|---|
public void add(Node n)
n - node to be added
public void add(Node[] i,
int s)
i - item arrays - number of items to be addedpublic void del(int pos)
pos - deletion positionpublic Item finish()
public void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||