|
||||||||||
| 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.
| Field Summary | |
|---|---|
static Seq |
EMPTY
Empty sequence. |
| Fields inherited from class org.basex.query.item.Item |
|---|
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, castErr, 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
| 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 Exprctx - query context
public Iter iter()
Item
iter in class Item
public Item atomic(QueryContext ctx)
throws QueryException
ExprExpr.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 - evaluation exception
public boolean eq(Item it)
throws QueryException
Item
eq in class Itemit - item to be compared.
QueryException - evaluation 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 - 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 - 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 | |||||||||