|
||||||||||
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. |
Object |
java()
Returns a Java object. |
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. |
String |
toString()
|
Methods inherited from class org.basex.query.item.Item |
---|
bool, comp, d, dbl, dec, flt, hashCode, iter, itr, 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, v |
Methods inherited from class org.basex.query.ExprInfo |
---|
color, info |
Methods inherited from class java.lang.Object |
---|
equals, getClass, 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 Item
public final long size(QueryContext ctx)
Expr
size
in class Item
ctx
- query context
public Object java()
Item
java
in class Item
public Iter iter()
Item
iter
in class Item
public Item atomic(QueryContext ctx) throws QueryException
Expr
null
reference.
If this method is not overwritten, Expr.iter(org.basex.query.QueryContext)
must be implemented.
atomic
in class Item
ctx
- query context
QueryException
- query exceptionpublic Item ebv(QueryContext ctx) throws QueryException
Expr
ebv
in class Item
ctx
- query context
QueryException
- query exceptionpublic Item test(QueryContext ctx) throws QueryException
Expr
test
in class Item
ctx
- query context
QueryException
- query exceptionpublic final boolean eq(Item it) throws QueryException
Item
eq
in class Item
it
- item to be compared
QueryException
- query exceptionpublic final int diff(Item it)
Item
diff
in class Item
it
- item to be compared
public final void serialize(Serializer ser) throws IOException
Item
serialize
in class Item
ser
- serializer
IOException
- I/O exceptionpublic final Return returned(QueryContext ctx)
Expr
returned
in class Item
ctx
- query context
public final boolean duplicates(QueryContext ctx)
Expr
duplicates
in class Item
ctx
- query context
public final void plan(Serializer ser) throws IOException
ExprInfo
plan
in class Item
ser
- serializer
IOException
- I/O exceptionpublic final String toString()
toString
in class Item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |