|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.ExprInfo
org.basex.query.expr.Expr
org.basex.query.value.Value
org.basex.query.value.seq.Seq
org.basex.query.value.seq.RangeSeq
public final class RangeSeq
Range sequence, containing at least two integers.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Flag |
Field Summary | |
---|---|
boolean |
asc
Ascending/descending. |
long |
start
Start value. |
Fields inherited from class org.basex.query.value.Value |
---|
type |
Method Summary | |
---|---|
Item |
ebv(QueryContext ctx,
InputInfo ii)
Checks if the iterator can be dissolved into an effective boolean value. |
static Value |
get(long min,
long sz,
boolean asc)
Returns a value representation of the specified items. |
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. |
void |
plan(FElem plan)
Creates an expression tree. |
Value |
reverse()
Returns a sequence in reverse order. |
boolean |
sameAs(Expr cmp)
Compares the current and specified expression for equality. |
Value |
sub(long s,
long sz)
Returns a subsequence. |
java.lang.Object |
toJava()
Returns a Java representation of the value. |
java.lang.String |
toString()
|
SeqType |
type()
Returns the static type of the evaluated value. |
int |
writeTo(Item[] arr,
int pos)
Writes this value's items out to the given array. |
Methods inherited from class org.basex.query.value.seq.Seq |
---|
get, get, hash, item, iter, size, test |
Methods inherited from class org.basex.query.value.Value |
---|
accept, cache, checkUp, compile, copy, count, data, description, exprSize, has, inline, isValue, iter, iterator, removable, serialize, value |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isItem, isVacuous, iterable, markTailCalls, optimize, uses, visitAll |
Methods inherited from class org.basex.data.ExprInfo |
---|
addPlan, addPlan, info, planAttr, planElem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final long start
public final boolean asc
Method Detail |
---|
public static Value get(long min, long sz, boolean asc)
min
- minimum valuesz
- sizeasc
- ascending
public java.lang.Object toJava()
Value
toJava
in class Seq
public Item ebv(QueryContext ctx, InputInfo ii) throws QueryException
Expr
ebv
in class Expr
ctx
- query contextii
- input info
QueryException
- query exceptionpublic SeqType type()
Expr
type
in class Expr
public boolean sameAs(Expr cmp)
Expr
sameAs
in class Expr
cmp
- expression to be compared
public int writeTo(Item[] arr, int pos)
Value
writeTo
in class Value
arr
- array to write topos
- start position
public Item itemAt(long pos)
Value
itemAt
in class Value
pos
- position
public Value sub(long s, long sz)
Seq
sub
in class Seq
s
- first valuesz
- length of sequence
public Value reverse()
Seq
reverse
in class Seq
public boolean homogeneous()
Value
homogeneous
in class Value
public void plan(FElem plan)
ExprInfo
plan
in class Seq
plan
- root elementpublic java.lang.String toString()
toString
in class Seq
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |