public final class DecSeq extends Seq
xs:decimal
, containing at least two of them.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[] values,
int size)
Creates a sequence with the items in the specified expressions.
|
boolean |
homogeneous()
Checks if all items of this value share the same type.
|
Dec |
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.
|
boolean |
sameAs(Expr cmp)
Compares the current and specified expression for equality.
|
SeqType |
seqType()
Returns the static type of the resulting value.
|
BigDecimal[] |
toJava()
Returns a Java representation of the 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, 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, typeCheck, uses, visitAll
public Dec itemAt(long pos)
Value
public boolean sameAs(Expr cmp)
Expr
public BigDecimal[] toJava()
Value
public Value reverse()
Seq
public static Value get(Value[] values, int size) throws QueryException
values
- valuessize
- size of resulting sequenceQueryException
- query exceptionpublic 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 final int writeTo(Item[] arr, int index)
Value
public final boolean homogeneous()
Value
homogeneous
in class Value
public final Value materialize(InputInfo ii)
Value
materialize
in class Value
ii
- input infopublic Value atomValue(InputInfo ii) throws QueryException
Value
atomValue
in class Value
ii
- input infoQueryException
- query exceptionpublic final long atomSize()
Value
Copyright © 2005–2015 BaseX Team. All rights reserved.