|
||||||||||
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
org.basex.query.value.item.Dec
public final class Dec
Decimal item (xs:decimal
).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Flag |
Field Summary | |
---|---|
static java.math.BigDecimal |
MAXULNG
Maximum unsigned long values. |
Fields inherited from class org.basex.query.value.item.Item |
---|
score, UNDEF |
Fields inherited from class org.basex.query.value.Value |
---|
type |
Constructor Summary | |
---|---|
Dec(java.math.BigDecimal d,
Type t)
Constructor. |
|
Dec(byte[] t)
Constructor. |
Method Summary | |
---|---|
boolean |
bool(InputInfo ii)
Returns a boolean representation of the value. |
double |
dbl()
Returns an double representation of the value. |
java.math.BigDecimal |
dec(InputInfo ii)
Returns a decimal representation of the value. |
int |
diff(Item it,
Collation coll,
InputInfo ii)
Returns the difference between the current and the specified item. |
boolean |
eq(Item it,
Collation coll,
InputInfo ii)
Checks the items for equality. |
float |
flt()
Returns an float representation of the value. |
static Dec |
get(java.math.BigDecimal d)
Constructor. |
static Dec |
get(double d)
Constructor. |
long |
itr()
Returns an integer (long) representation of the value. |
static java.math.BigDecimal |
parse(byte[] val,
InputInfo ii)
Converts the given token into a decimal value. |
static java.math.BigDecimal |
parse(double val,
InputInfo ii)
Converts the given double into a decimal value. |
byte[] |
string()
Returns a string representation of the value. |
java.lang.Object |
toJava()
Returns a Java representation of the value. |
Methods inherited from class org.basex.query.value.item.ANum |
---|
dbl, flt, hash, itr, string, test, toString |
Methods inherited from class org.basex.query.value.item.Item |
---|
castErr, comparable, description, ebv, 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, 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 |
Field Detail |
---|
public static final java.math.BigDecimal MAXULNG
Constructor Detail |
---|
public Dec(byte[] t)
t
- string representationpublic Dec(java.math.BigDecimal d, Type t)
d
- decimal valuet
- string representationMethod Detail |
---|
public static Dec get(java.math.BigDecimal d)
d
- big decimal value
public static Dec get(double d)
d
- big decimal value
public byte[] string()
ANum
string
in class ANum
public boolean bool(InputInfo ii)
Item
bool
in class Item
ii
- input info
public long itr()
ANum
itr
in class ANum
public float flt()
ANum
flt
in class ANum
public double dbl()
ANum
dbl
in class ANum
public java.math.BigDecimal dec(InputInfo ii)
Item
dec
in class Item
ii
- input info
public boolean eq(Item it, Collation coll, InputInfo ii) throws QueryException
Item
eq
in class Item
it
- item to be comparedcoll
- collationii
- input info
QueryException
- query exceptionpublic int diff(Item it, Collation coll, InputInfo ii) throws QueryException
Item
diff
in class Item
it
- item to be comparedcoll
- query contextii
- input info
QueryException
- query exceptionpublic java.lang.Object toJava()
Value
toJava
in class Value
public static java.math.BigDecimal parse(double val, InputInfo ii) throws QueryException
val
- value to be convertedii
- input info
QueryException
- query exceptionpublic static java.math.BigDecimal parse(byte[] val, InputInfo ii) throws QueryException
val
- value to be convertedii
- input info
QueryException
- query exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |