Modifier and Type | Method and Description |
---|---|
long |
atomSize()
Computes the number of atomized items.
|
Value |
atomValue(InputInfo ii)
Evaluates the expression and returns the atomized items.
|
Item |
ebv(QueryContext qc,
InputInfo ii)
Checks if the effective boolean value can be computed for this expression:
If it yields an empty sequence,
Bln.FALSE will be returned. |
static Value |
get(Value val,
long from,
long len)
Factory method for subsequences.
|
boolean |
homogeneous()
Checks if all items of this value share the same type.
|
Item |
itemAt(long pos)
Gets the item at the given position in the value.
|
Value |
materialize(InputInfo ii)
Materializes streamable values, or returns a self reference.
|
Value |
reverse()
Returns a sequence in reverse order.
|
SeqType |
seqType()
Returns the static type of the resulting value.
|
int |
writeTo(Item[] arr,
int index)
Writes this value's items out to the given array.
|
atomItem, get, get, get, hash, item, iter, plan, size, test, toErrorString, toJava, toString
accept, atomValue, cache, checkUp, compile, copy, count, description, exprSize, has, inline, isValue, iter, iterator, removable, serialize, serialize, value
atomIter, data, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, iterable, markTailCalls, optimize, optimizeEbv, sameAs, typeCheck, uses, visitAll
public static Value get(Value val, long from, long len)
val
- underlying valuefrom
- starting indexlen
- length of the subsequencepublic Value reverse()
Seq
public int writeTo(Item[] arr, int index)
Value
public Item itemAt(long pos)
Value
public boolean homogeneous()
Value
homogeneous
in class Value
public Item ebv(QueryContext qc, InputInfo ii) throws QueryException
Expr
Checks if the effective boolean value can be computed for this expression:
Bln.FALSE
will be returned.
A single numeric item may later be evaluated as positional predicate.
ebv
in class Expr
qc
- query contextii
- input infoQueryException
- query exceptionpublic SeqType seqType()
Expr
public Value materialize(InputInfo ii) throws QueryException
Value
materialize
in class Value
ii
- input infoQueryException
- query exceptionpublic Value atomValue(InputInfo ii) throws QueryException
Value
atomValue
in class Value
ii
- input infoQueryException
- query exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.