|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.item.Item
org.basex.query.item.Seq
public class Seq
Item sequence.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
|---|
Expr.Use |
| Field Summary | |
|---|---|
static Seq |
EMPTY
Empty sequence. |
Item[] |
val
Item array. |
| Fields inherited from class org.basex.query.item.Item |
|---|
score, type |
| Method Summary | |
|---|---|
Item |
atomic(QueryContext ctx)
Evaluates the expression and returns the resulting item or a null reference. |
int |
diff(Item it)
Returns the difference between the current and the specified item. |
boolean |
duplicates(QueryContext ctx)
Returns true if the expression might yield duplicates and unsorted results. |
Item |
ebv(QueryContext ctx)
Checks if the iterator can be dissolved into an effective boolean value. |
boolean |
eq(Item it)
Checks the items for equality. |
static Item |
get(Item[] v,
int s)
Constructor. |
boolean |
i()
Checks if this is an item. |
Iter |
iter()
Returns an item iterator. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
Return |
returned(QueryContext ctx)
Indicates the return type of an expression. |
void |
serialize(Serializer ser)
Serializes the item. |
long |
size(QueryContext ctx)
Returns the sequence size or 1. |
Item |
test(QueryContext ctx)
Performs a predicate test and returns the item if test was successful. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.item.Item |
|---|
bool, comp, d, dbl, dec, flt, hash, iter, itr, java, n, name, node, removable, s, score, score, str, u, uses |
| Methods inherited from class org.basex.query.expr.Expr |
|---|
addText, checkCtx, checkDbl, checkItr, e, indexAccessible, indexEquivalent, remove, sameAs |
| Methods inherited from class org.basex.query.ExprInfo |
|---|
color, info |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Seq EMPTY
public Item[] val
| Method Detail |
|---|
public static Item get(Item[] v,
int s)
v - values - size
public final boolean i()
Expr
i in class Itempublic long size(QueryContext ctx)
Expr
size in class Itemctx - query context
public Iter iter()
Item
iter in class Item
public Item atomic(QueryContext ctx)
throws QueryException
Exprnull reference.
If this method is not overwritten, Expr.iter(org.basex.query.QueryContext) must be implemented.
atomic in class Itemctx - query context
QueryException - query exception
public Item ebv(QueryContext ctx)
throws QueryException
Expr
ebv in class Itemctx - query context
QueryException - query exception
public Item test(QueryContext ctx)
throws QueryException
Expr
test in class Itemctx - query context
QueryException - query exception
public boolean eq(Item it)
throws QueryException
Item
eq in class Itemit - item to be compared.
QueryException - query exceptionpublic int diff(Item it)
Item
diff in class Itemit - item to be compared.
public void serialize(Serializer ser)
throws java.io.IOException
Item
serialize in class Itemser - serializer
java.io.IOException - I/O exceptionpublic Return returned(QueryContext ctx)
Expr
returned in class Itemctx - query context
public boolean duplicates(QueryContext ctx)
Expr
duplicates in class Itemctx - query context
public void plan(Serializer ser)
throws java.io.IOException
ExprInfo
plan in class Itemser - serializer
java.io.IOException - I/O exceptionpublic java.lang.String toString()
toString in class Item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||