|
||||||||||
| 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.Bln
public final class Bln
XPath Value representing a boolean.
| Field Summary | |
|---|---|
static Bln |
FALSE
Static false value. |
static Bln |
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. |
Bln |
eval(XPContext ctx)
Evaluates the expression with the specified context set. |
static Bln |
get(boolean val)
Returns an instance of this class. |
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 Bln TRUE
public static final Bln FALSE
| Method Detail |
|---|
public static Bln get(boolean val)
val - boolean value
public Bln eval(XPContext ctx)
Expr
eval in class Exprctx - query context
public boolean bool()
Item
bool in class Itempublic double num()
Item
num in class Itempublic byte[] str()
Item
str in class Itempublic int prec()
Item
public boolean eq(Item v)
Item
eq in class Itemv - value to be compared
public boolean appr(Item v)
Item
v - value to be compared
public boolean apprContains(Item v)
Item
v - value to be compared
public java.lang.String toString()
toString in class Item
public void plan(Serializer ser)
throws java.io.IOException
ExprInfo
plan in class ExprInfoser - serializer
java.io.IOException - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||