|
||||||||||
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.ItemSeq
public final class ItemSeq
Sequence, containing at least two items.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Flag |
Field Summary |
---|
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. |
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. |
boolean |
iterable()
Returns true if the expression is iterable, i.e., if it will not contain any duplicate nodes and if all nodes will be are sorted. |
Value |
reverse()
Returns a sequence in reverse order. |
boolean |
sameAs(Expr cmp)
Compares the current and specified expression for equality. |
Value |
sub(long start,
long length)
Returns a subsequence. |
SeqType |
type()
Returns the static type of the evaluated value. |
int |
writeTo(Item[] arr,
int start)
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, plan, size, test, toJava, toString |
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, 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 |
Method Detail |
---|
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 iterable()
Expr
AxisPath
.
iterable
in class Expr
public boolean sameAs(Expr cmp)
Expr
sameAs
in class Expr
cmp
- expression to be compared
public int writeTo(Item[] arr, int start)
Value
writeTo
in class Value
arr
- array to write tostart
- start position
public Item itemAt(long pos)
Value
itemAt
in class Value
pos
- position
public boolean homogeneous()
Value
homogeneous
in class Value
public Value sub(long start, long length)
Seq
sub
in class Seq
start
- first valuelength
- length of sequence
public Value reverse()
Seq
reverse
in class Seq
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |