|
||||||||||
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
public abstract class Seq
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 | |
---|---|
static Value |
get(Item[] v,
int s)
Returns a value representation of the specified items. |
static Value |
get(Item[] v,
int s,
Type t)
Returns a value representation of the specified items. |
int |
hash(InputInfo ii)
Returns a hash code for this value. |
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. |
ValueIter |
iter()
Returns an iterator. |
void |
plan(FElem plan)
Creates an expression tree. |
abstract Value |
reverse()
Returns a sequence in reverse order. |
long |
size()
Returns the sequence size or 1. |
abstract Value |
sub(long start,
long length)
Returns a subsequence. |
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()
|
Methods inherited from class org.basex.query.value.Value |
---|
accept, cache, checkUp, compile, copy, count, data, description, exprSize, has, homogeneous, inline, isValue, itemAt, iter, iterator, removable, serialize, value, writeTo |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, compEbv, copy, ebv, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isItem, isVacuous, iterable, markTailCalls, optimize, sameAs, type, 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 static Value get(Item[] v, int s)
v
- values
- size
public static Value get(Item[] v, int s, Type t)
v
- values
- sizet
- sequence type
public java.lang.Object toJava() throws QueryException
Value
toJava
in class Value
QueryException
- query exceptionpublic final long size()
Expr
size
in class Value
public final Item item(QueryContext ctx, InputInfo ii) throws QueryException
Expr
null
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.
item
in class Expr
ctx
- query contextii
- input info
QueryException
- query exceptionpublic final Item test(QueryContext ctx, InputInfo ii) throws QueryException
Expr
test
in class Expr
ctx
- query contextii
- input info
QueryException
- query exceptionpublic final ValueIter iter()
Value
iter
in class Value
public final int hash(InputInfo ii) throws QueryException
Value
hash
in class Value
ii
- input info
QueryException
- if atomization can't be applied (e.g. function item)public abstract Value sub(long start, long length)
start
- first valuelength
- length of sequence
public abstract Value reverse()
public void plan(FElem plan)
ExprInfo
plan
in class ExprInfo
plan
- root elementpublic java.lang.String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |