|
||||||||||
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.item.Item
org.basex.query.value.item.ANum
public abstract class ANum
Abstract super class for all numeric items. Useful for removing exceptions and unifying hash values.
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.item.Item |
---|
score, UNDEF |
Fields inherited from class org.basex.query.value.Value |
---|
type |
Method Summary | |
---|---|
abstract double |
dbl()
Returns an double representation of the value. |
double |
dbl(InputInfo ii)
Returns a double representation of the value. |
abstract float |
flt()
Returns an float representation of the value. |
float |
flt(InputInfo ii)
Returns a float representation of the value. |
int |
hash(InputInfo ii)
Returns a hash code for this value. |
abstract long |
itr()
Returns an integer (long) representation of the value. |
long |
itr(InputInfo ii)
Returns an integer (long) representation of the value. |
abstract byte[] |
string()
Returns a string representation of the value. |
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. |
java.lang.String |
toString()
|
Methods inherited from class org.basex.query.value.item.Item |
---|
bool, castErr, comparable, dec, description, diff, ebv, eq, equiv, homogeneous, input, isItem, item, itemAt, iter, iterable, materialize, plan, score, score, size, type, typeId, writeTo, xdmInfo |
Methods inherited from class org.basex.query.value.Value |
---|
accept, cache, checkUp, compile, copy, count, data, exprSize, has, inline, isValue, iter, iterator, removable, serialize, toJava, value |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, sameAs, 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 final byte[] string(InputInfo ii)
Item
string
in class Item
ii
- input info, use null
if none is available
public final double dbl(InputInfo ii)
Item
dbl
in class Item
ii
- input info
public final long itr(InputInfo ii)
Item
itr
in class Item
ii
- input info
public final float flt(InputInfo ii)
Item
flt
in class Item
ii
- input info
public abstract byte[] string()
public abstract long itr()
public abstract double dbl()
public abstract float flt()
public Item test(QueryContext ctx, InputInfo ii) throws QueryException
Expr
test
in class Item
ctx
- query contextii
- input info
QueryException
- query exceptionpublic final int hash(InputInfo ii)
Value
hash
in class Item
ii
- input info
public final java.lang.String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |