|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.xquery.util.SeqBuilder
public final class SeqBuilder
Simple Sequence Builder. In contrary to the SeqBuilder,
sequences are not flattened.
| Field Summary | |
|---|---|
Item[] |
item
Item array. |
int |
size
Number of entries. |
| Constructor Summary | |
|---|---|
SeqBuilder()
Constructor. |
|
SeqBuilder(Iter it)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Item i)
Adds an atomic item. |
void |
add(Iter it)
Adds the items of an iterator. |
Item |
finish()
Returns an atomic item or a sequence. |
Iter |
iter()
Returns an iterator. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Item[] item
public int size
| Constructor Detail |
|---|
public SeqBuilder()
public SeqBuilder(Iter it)
throws XQException
it - initial iteration
XQException - evaluation exception| Method Detail |
|---|
public void add(Iter it)
throws XQException
it - entry to be added
XQException - evaluation exceptionpublic void add(Item i)
i - entry to be addedpublic Item finish()
public Iter iter()
public 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 | |||||||||