|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.xpath.item.NodeBuilder
public final class NodeBuilder
NodeSet Constructor.
| Field Summary | |
|---|---|
int[] |
nodes
Node array. |
int |
size
Size of node array. |
| Constructor Summary | |
|---|---|
NodeBuilder()
Constructor, creating an empty node set. |
|
NodeBuilder(int[] ids)
Constructor, creating a new node set from the specified node ids. |
|
| Method Summary | |
|---|---|
void |
add(int pre)
Adds a pre value to the node set. |
void |
add(NodeBuilder build)
Adds a node set. |
int[] |
finish()
Returns the node array after sorting and duplicate elimination. |
void |
reset()
Reset the NodeSet so it can be reused. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int[] nodes
public int size
| Constructor Detail |
|---|
public NodeBuilder()
public NodeBuilder(int[] ids)
ids - node ids| Method Detail |
|---|
public void add(int pre)
pre - value to be added.public void add(NodeBuilder build)
build - node set to be added.public void reset()
public int[] finish()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||