Modifier and Type | Field and Description |
---|---|
static Bln |
FALSE
Static boolean item without scoring.
|
static Bln |
TRUE
Static boolean item without scoring.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bool(InputInfo ii)
Returns a boolean representation of the value.
|
double |
dbl(InputInfo ii)
Returns a double representation of the value.
|
BigDecimal |
dec(InputInfo ii)
Returns a decimal representation of the value.
|
int |
diff(Item it,
Collation coll,
InputInfo ii)
Returns the difference between the current and the specified item.
|
boolean |
eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii)
Checks the items for equality.
|
float |
flt(InputInfo ii)
Returns a float representation of the value.
|
static Bln |
get(boolean value)
Returns a static item instance.
|
static Bln |
get(boolean value,
double score)
Constructor, adding a full-text score.
|
long |
itr(InputInfo ii)
Returns an integer (long) representation of the value.
|
static boolean |
parse(byte[] value,
InputInfo ii)
Converts the specified string to a boolean.
|
boolean |
sameAs(Expr cmp)
Compares the current and specified expression for equality.
|
byte[] |
string()
Returns the string value.
|
byte[] |
string(InputInfo ii)
Returns a string representation of the value.
|
Boolean |
toJava()
Returns a Java representation of the value.
|
String |
toString() |
atomItem, atomItem, atomSize, atomValue, comparable, description, ebv, equiv, hash, homogeneous, input, item, itemAt, iter, iterable, materialize, plan, score, score, seqType, size, test, typeId, writeTo, xdmInfo
accept, atomValue, cache, checkUp, compile, copy, count, exprSize, has, inline, isValue, iter, iterator, removable, serialize, serialize, value
atomIter, data, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, optimizeEbv, typeCheck, uses, visitAll
public static final Bln TRUE
public static final Bln FALSE
public static Bln get(boolean value, double score)
value
- boolean valuescore
- score valuepublic static Bln get(boolean value)
value
- boolean valuepublic byte[] string(InputInfo ii)
Item
public byte[] string()
public boolean bool(InputInfo ii)
Item
public long itr(InputInfo ii)
Item
public float flt(InputInfo ii)
Item
public double dbl(InputInfo ii)
Item
public BigDecimal dec(InputInfo ii)
Item
public boolean eq(Item it, Collation coll, StaticContext sc, InputInfo ii) throws QueryException
Item
eq
in class Item
it
- item to be comparedcoll
- collationsc
- static contextii
- input infoQueryException
- query exceptionpublic int diff(Item it, Collation coll, InputInfo ii) throws QueryException
Item
diff
in class Item
it
- item to be comparedcoll
- query contextii
- input infoQueryException
- query exceptionpublic Boolean toJava()
Value
public boolean sameAs(Expr cmp)
Expr
public static boolean parse(byte[] value, InputInfo ii) throws QueryException
value
- string to be checkedii
- input infoQueryException
- query exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.