| Modifier and Type | Field and Description |
|---|---|
static ValueIter |
ITER
Empty iterator.
|
static Empty |
SEQ
Single instance.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
ebv(QueryContext ctx,
InputInfo ii)
Checks if the iterator can be dissolved into an effective boolean value.
|
int |
hash(InputInfo ii)
Returns a hash code for this value.
|
boolean |
homogenous()
Checks if all items of this value share the same type.
|
boolean |
isEmpty()
Tests if this is an empty sequence.
|
boolean |
isVacuous()
Tests if this is a vacuous expression (empty sequence or error function).
|
Item |
item(QueryContext ctx,
InputInfo ii)
Evaluates the expression and returns the resulting item or
a
null reference, if the expression yields an empty sequence. |
Item |
itemAt(long pos)
Gets the item at the given position in the value.
|
ValueIter |
iter()
Returns an iterator.
|
boolean |
iterable()
Returns true if the expression is iterable, i.e., if it does not contain
any duplicates and if all results are sorted.
|
void |
plan(Serializer ser)
Serializes the expression tree.
|
long |
size()
Returns the sequence size or 1.
|
Item |
test(QueryContext ctx,
InputInfo ii)
Performs a predicate test and returns the item if test was successful.
|
java.lang.Object |
toJava()
Returns a Java representation of the value.
|
java.lang.String |
toString() |
SeqType |
type()
Returns the sequence type of the evaluated value.
|
int |
writeTo(Item[] arr,
int start)
Writes this value's items out to the given array.
|
cache, comp, count, data, description, info, isValue, iter, iterator, removable, remove, uses, valueaddText, compEbv, hasFreeVars, indexAccessible, indexEquivalent, isFunction, isItem, markTailCalls, sameAspublic static final Empty SEQ
public static final ValueIter ITER
public boolean isEmpty()
ExprEmpty class, which represents the empty sequence.public boolean isVacuous()
Exprpublic long size()
Exprpublic java.lang.Object toJava()
Valuepublic Item item(QueryContext ctx, InputInfo ii)
Exprnull reference, if the expression yields an empty sequence.
If this method is not overwritten, Expr.iter(org.basex.query.QueryContext) must be implemented
by an expression, as it may be called by this method.public Item ebv(QueryContext ctx, InputInfo ii)
Exprpublic Item test(QueryContext ctx, InputInfo ii)
Exprpublic SeqType type()
Exprpublic boolean iterable()
ExprAxisPath.public void plan(Serializer ser) throws java.io.IOException
ExprInfopublic int hash(InputInfo ii)
Valuepublic int writeTo(Item[] arr, int start)
Valuepublic Item itemAt(long pos)
Valuepublic boolean homogenous()
Valuehomogenous in class Value