|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xpath.expr.Expr
org.basex.query.xpath.values.Item
org.basex.query.xpath.values.Bool
public final class Bool
XPath Value representing a boolean.
| Field Summary | |
|---|---|
static Bool |
FALSE
Static false value. |
static Bool |
TRUE
Static true value. |
| Method Summary | |
|---|---|
boolean |
appr(Item v)
Checks the approximate equality of the value and the specified value. |
boolean |
apprContains(Item v)
Checks whether this value approximately contains the word(s) in val. |
boolean |
bool()
Returns the boolean value. |
boolean |
eq(Item v)
Checks the equality of the value and the specified value. |
Bool |
eval(XPContext ctx)
Evaluates the expression with the specified context set. |
static Bool |
get(boolean val)
Returns a Bool instance. |
double |
num()
Returns the double value. |
int |
prec()
Returns the evaluation precedence. |
byte[] |
str()
Returns the literal value. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.xpath.values.Item |
|---|
compile, sameAs, serialize, serialize, size, usesPos, usesSize |
| Methods inherited from class org.basex.query.xpath.expr.Expr |
|---|
indexEquivalent, indexSizes, returnedValue, sameAs |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Bool FALSE
public static final Bool TRUE
| Method Detail |
|---|
public boolean appr(Item v)
Item
v - value to be compared
public boolean apprContains(Item v)
Item
v - value to be compared
public boolean bool()
Item
bool in class Itempublic boolean eq(Item v)
Item
eq in class Itemv - value to be compared
public Bool eval(XPContext ctx)
Expr
eval in class Exprctx - query context
public static Bool get(boolean val)
val - boolean value
public double num()
Item
num in class Itempublic int prec()
Item
public byte[] str()
Item
str in class Itempublic java.lang.String toString()
toString in class Item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||