|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xquery.expr.Expr
org.basex.query.xquery.item.Item
org.basex.query.xquery.item.Num
org.basex.query.xquery.item.Dec
public class Dec
Decimal item.
| Field Summary |
|---|
| Fields inherited from class org.basex.query.xquery.expr.Expr |
|---|
type |
| Constructor Summary | |
|---|---|
Dec(byte[] t)
Constructor. |
|
Dec(double d)
Constructor. |
|
Dec(double v,
long l)
Constructor. |
|
Dec(long v,
Type t)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
bool()
Returns a boolean representation of the item. |
double |
dbl()
Returns a double representation of the item. |
int |
diff(Item it)
Returns the difference between the current and the specified item. |
boolean |
eq(Item it)
Checks the items for equality. |
float |
flt()
Returns a float representation of the item. |
long |
itr()
Returns a numeric (long) representation of the item. |
byte[] |
str()
Returns an atomized string. |
| Methods inherited from class org.basex.query.xquery.item.Num |
|---|
n |
| Methods inherited from class org.basex.query.xquery.item.Item |
|---|
castErr, comp, eval, i, info, iter, serialize, serialize, size, toString |
| Methods inherited from class org.basex.query.xquery.expr.Expr |
|---|
cls, d, e, node, s, u |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Dec(byte[] t)
t - string representation
public Dec(double d)
throws XQException
d - double value
XQException - evaluation exception
public Dec(double v,
long l)
throws XQException
v - valuel - long representation
XQException - evaluation exception
public Dec(long v,
Type t)
v - valuet - data type| Method Detail |
|---|
public final boolean bool()
Item
bool in class Itempublic final double dbl()
Item
dbl in class Item
public final int diff(Item it)
throws XQException
Item
diff in class Itemit - item to be compared.
XQException - evaluation exception
public final boolean eq(Item it)
throws XQException
Item
eq in class Itemit - item to be compared.
XQException - evaluation exceptionpublic final float flt()
Item
flt in class Itempublic final long itr()
Item
itr in class Itempublic final byte[] str()
Expr
str in class Expr
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||