Modifier and Type | Field and Description |
---|---|
static Str |
WC
Wildcard string.
|
static Str |
ZERO
Zero-length string.
|
Constructor and Description |
---|
Str(byte[] value,
AtomType type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Str |
get(byte[] value)
Returns an instance of this class.
|
static Str |
get(Object value,
QueryContext qc,
InputInfo ii)
Returns an instance of this class.
|
static Str |
get(String value)
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.
|
String |
toJava()
Returns a Java representation of the value.
|
atomItem, atomItem, atomSize, atomValue, comparable, dbl, dec, description, ebv, equiv, flt, hash, homogeneous, input, item, itemAt, iter, iterable, itr, 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 Str WC
public static final Str ZERO
public Str(byte[] value, AtomType type)
value
- valuetype
- item typepublic static Str get(byte[] value)
value
- valuepublic static Str get(String value)
value
- stringpublic static Str get(Object value, QueryContext qc, InputInfo ii) throws QueryException
value
- object (will be converted to token)qc
- query contextii
- input infoQueryException
- query exceptionpublic byte[] string(InputInfo ii)
Item
public byte[] string()
public boolean sameAs(Expr cmp)
Expr
Copyright © 2005–2015 BaseX Team. All rights reserved.