|
|||||||||
| 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.Bln
public final class Bln
Boolean item.
| Field Summary | |
|---|---|
static Bln |
FALSE
Static boolean item (use with care). |
static Bln |
TRUE
Static boolean item (use with care). |
| Fields inherited from class org.basex.query.xquery.expr.Expr |
|---|
type |
| Method Summary | |
|---|---|
boolean |
bool()
Returns a boolean representation of the item. |
static boolean |
check(byte[] str)
Checks if the specified value is a correct boolean string. |
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. |
static Bln |
get(boolean b)
Returns a static item instance. |
long |
itr()
Returns a numeric (long) representation of the item. |
byte[] |
str()
Returns an atomized string. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.xquery.item.Item |
|---|
castErr, comp, eval, i, info, iter, serialize, serialize, size |
| Methods inherited from class org.basex.query.xquery.expr.Expr |
|---|
cls, d, e, n, node, s, u |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Bln FALSE
public static final Bln TRUE
| Method Detail |
|---|
public boolean bool()
Item
bool in class Item
public static boolean check(byte[] str)
throws XQException
str - string to be checked
XQException - evaluation exceptionpublic double dbl()
Item
dbl in class Item
public int diff(Item it)
throws XQException
Item
diff in class Itemit - item to be compared.
XQException - evaluation exception
public boolean eq(Item it)
throws XQException
Item
eq in class Itemit - item to be compared.
XQException - evaluation exceptionpublic float flt()
Item
flt in class Itempublic static Bln get(boolean b)
b - boolean value
public long itr()
Item
itr in class Itempublic byte[] str()
Expr
str in class Exprpublic java.lang.String toString()
toString in class Item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||