| Modifier and Type | Method and Description |
|---|---|
boolean |
bool(InputInfo ii)
Returns a boolean representation of the value.
|
int |
diff(InputInfo ii,
Item it)
Returns the difference between the current and the specified item.
|
boolean |
eq(InputInfo ii,
Item it)
Checks the items for equality.
|
static Str |
get(byte[] v)
Returns an instance of this class.
|
static Str |
get(java.lang.Object v)
Returns an instance of this class.
|
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.
|
java.lang.String |
toJava()
Returns a Java representation of the value.
|
java.lang.String |
toString() |
comparable, dbl, dec, ebv, equiv, flt, hash, homogenous, input, isItem, item, itemAt, iter, iterable, itr, plan, score, score, serialize, size, test, type, writeTo, xdmInfocache, comp, count, data, description, info, isValue, iter, iterator, removable, remove, uses, valueaddText, compEbv, hasFreeVars, indexAccessible, indexEquivalent, isEmpty, isFunction, isVacuous, markTailCallspublic static final Str ZERO
public static Str get(byte[] v)
v - valuepublic static Str get(java.lang.Object v)
v - object (will be converted to token)public final byte[] string(InputInfo ii)
Itempublic final byte[] string()
public final boolean bool(InputInfo ii)
Itempublic boolean eq(InputInfo ii, Item it) throws QueryException
Itemeq in class Itemii - input infoit - item to be comparedQueryException - query exceptionpublic int diff(InputInfo ii, Item it) throws QueryException
Itemdiff in class Itemii - input infoit - item to be comparedQueryException - query exceptionpublic final boolean sameAs(Expr cmp)
Exprpublic final java.lang.String toJava()
Value