|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.xpath.expr.Expr
org.basex.query.xpath.item.Item
org.basex.query.xpath.item.Dbl
public final class Dbl
XPath value type modeling a number.
Field Summary | |
---|---|
static Dbl |
ONE
Static number. |
static Dbl |
ZERO
Static number. |
Constructor Summary | |
---|---|
Dbl(byte[] n)
Constructor. |
|
Dbl(double n)
Constructor. |
|
Dbl(long n)
Constructor. |
Method Summary | |
---|---|
boolean |
appr(Item v)
Checks the approximate equality of the value and the specified value. |
boolean |
bool()
Returns the boolean value. |
boolean |
eq(Item v)
Checks the equality of the value and the specified value. |
Dbl |
eval(XPContext ctx)
Evaluates the expression with the specified context set. |
double |
num()
Returns the double value. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
int |
prec()
Returns the evaluation precedence. |
byte[] |
str()
Returns the literal value. |
java.lang.String |
toString()
|
Methods inherited from class org.basex.query.xpath.item.Item |
---|
comp, same, serialize, serialize, size, usesPos, usesSize |
Methods inherited from class org.basex.query.xpath.expr.Expr |
---|
indexEquivalent, indexSizes, returnedValue, sameAs |
Methods inherited from class org.basex.query.ExprInfo |
---|
color, info, name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Dbl ZERO
public static final Dbl ONE
Constructor Detail |
---|
public Dbl(double n)
n
- number to be represented.public Dbl(long n)
n
- number to be represented.public Dbl(byte[] n)
n
- number to be represented.Method Detail |
---|
public Dbl eval(XPContext ctx)
Expr
eval
in class Expr
ctx
- query context
public boolean bool()
Item
bool
in class Item
public byte[] str()
Item
str
in class Item
public double num()
Item
num
in class Item
public boolean eq(Item v)
Item
eq
in class Item
v
- value to be compared
public boolean appr(Item v)
Item
v
- value to be compared
public int prec()
Item
public java.lang.String toString()
toString
in class Item
public void plan(Serializer ser) throws java.io.IOException
ExprInfo
plan
in class ExprInfo
ser
- serializer
java.io.IOException
- exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |