|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.xquery.iter.Iter
org.basex.query.xquery.iter.NodeIter
org.basex.query.xquery.iter.NodIter
public final class NodIter
Simple node Iterator, ignoring duplicates.
| Field Summary | |
|---|---|
Nod[] |
list
Items. |
int |
size
Size. |
| Fields inherited from class org.basex.query.xquery.iter.NodeIter |
|---|
NONE |
| Fields inherited from class org.basex.query.xquery.iter.Iter |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
NodIter()
Constructor. |
|
NodIter(Nod[] it,
int s)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Nod n)
Adds a node. |
void |
add(Nod[] i,
int s)
Adds several items. |
Nod |
next()
Returns the next item or null if no other items are found. |
void |
reset()
Resets the iterator; can be optionally implemented. |
long |
size()
Returns the number of entries. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.xquery.iter.Iter |
|---|
atomic, ebv, finish, seqErr |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Nod[] list
public int size
| Constructor Detail |
|---|
public NodIter()
public NodIter(Nod[] it,
int s)
it - item arrays - size| Method Detail |
|---|
public void add(Nod n)
n - node to be added
public void add(Nod[] i,
int s)
i - item arrays - number of items to be addedpublic Nod next()
Iter
next in class NodeIterpublic long size()
Iter
size in class Iterpublic void reset()
Iter
reset in class Iterpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||