| Modifier and Type | Field and Description |
|---|---|
static int |
UNDEF
Undefined item.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
bool(InputInfo ii)
Returns a boolean representation of the value.
|
boolean |
comparable(Item it)
Checks if the items can be compared.
|
double |
dbl(InputInfo ii)
Returns a double representation of the value.
|
java.math.BigDecimal |
dec(InputInfo ii)
Returns a decimal representation of the value.
|
int |
diff(InputInfo ii,
Item it)
Returns the difference between the current and the specified item.
|
Item |
ebv(QueryContext ctx,
InputInfo ii)
Checks if the iterator can be dissolved into an effective boolean value.
|
abstract boolean |
eq(InputInfo ii,
Item it)
Checks the items for equality.
|
boolean |
equiv(InputInfo ii,
Item it)
Checks the items for equivalence.
|
float |
flt(InputInfo ii)
Returns a float representation of the value.
|
int |
hash(InputInfo ii)
Returns a hash code for this value.
|
boolean |
homogenous()
Checks if all items of this value share the same type.
|
java.io.InputStream |
input(InputInfo ii)
Returns an input stream.
|
boolean |
isItem()
Tests if this is an item.
|
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. |
Item |
itemAt(long pos)
Gets the item at the given position in the value.
|
ValueIter |
iter()
Returns an iterator.
|
boolean |
iterable()
Returns true if the expression is iterable, i.e., if it does not contain
any duplicates and if all results are sorted.
|
long |
itr(InputInfo ii)
Returns an integer (long) representation of the value.
|
void |
plan(Serializer ser)
Serializes the expression tree.
|
double |
score()
Returns a score value.
|
void |
score(double s)
Sets a new score value.
|
void |
serialize(Serializer ser)
Serializes the item.
|
long |
size()
Returns the sequence size or 1.
|
abstract byte[] |
string(InputInfo ii)
Returns a string representation of the value.
|
Item |
test(QueryContext ctx,
InputInfo ii)
Performs a predicate test and returns the item if test was successful.
|
SeqType |
type()
Returns the sequence type of the evaluated value.
|
int |
writeTo(Item[] arr,
int start)
Writes this value's items out to the given array.
|
byte[] |
xdmInfo()
Returns meta data on the current item.
|
cache, comp, count, data, description, info, isValue, iter, iterator, removable, remove, toJava, uses, valueaddText, compEbv, hasFreeVars, indexAccessible, indexEquivalent, isEmpty, isFunction, isVacuous, markTailCalls, sameAspublic static final int UNDEF
public final Item item(QueryContext ctx, InputInfo ii)
Exprnull 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.public final Item itemAt(long pos)
Valuepublic final Item ebv(QueryContext ctx, InputInfo ii)
Exprpublic final Item test(QueryContext ctx, InputInfo ii) throws QueryException
Exprtest in class Exprctx - query contextii - input infoQueryException - query exceptionpublic final boolean isItem()
Exprpublic abstract byte[] string(InputInfo ii) throws QueryException
ii - input info, use null if none is availableQueryException - if the item can't be atomizedpublic boolean bool(InputInfo ii) throws QueryException
ii - input infoQueryException - query exceptionpublic java.math.BigDecimal dec(InputInfo ii) throws QueryException
ii - input infoQueryException - query exceptionpublic long itr(InputInfo ii) throws QueryException
ii - input infoQueryException - query exceptionpublic float flt(InputInfo ii) throws QueryException
ii - input infoQueryException - query exceptionpublic double dbl(InputInfo ii) throws QueryException
ii - input infoQueryException - query exceptionpublic final boolean comparable(Item it)
it - item to be comparedpublic abstract boolean eq(InputInfo ii, Item it) throws QueryException
ii - input infoit - item to be comparedQueryException - query exceptionpublic final boolean equiv(InputInfo ii, Item it) throws QueryException
ii - input infoit - item to be comparedQueryException - query exceptionpublic int diff(InputInfo ii, Item it) throws QueryException
ii - input infoit - item to be comparedQueryException - query exceptionpublic java.io.InputStream input(InputInfo ii) throws QueryException
ii - input infoQueryException - query exceptionpublic final SeqType type()
Exprpublic final long size()
Exprpublic final boolean iterable()
ExprAxisPath.public double score()
public final void score(double s)
s - score valuepublic void serialize(Serializer ser) throws java.io.IOException
ser - serializerjava.io.IOException - I/O exceptionpublic void plan(Serializer ser) throws java.io.IOException
ExprInfopublic int hash(InputInfo ii) throws QueryException
Valuehash in class Valueii - input infoQueryException - if atomization can't be applied (e.g. function item)public final int writeTo(Item[] arr, int start)
Valuepublic final boolean homogenous()
Valuehomogenous in class Valuepublic byte[] xdmInfo()