Package org.basex.query.value.item
Class Str
String item (
xs:string, xs:normalizedString, xs:language, etc.).- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Strget(byte[] value) Returns an instance of this class.static Strget(Object value, QueryContext qc, InputInfo inf) Returns a string representation of the specified value.static StrReturns an instance of this class.simplifyFor(CompileContext.Simplify mode, CompileContext cc) This function is called at compile time for expressions whose operands might be simplified.byte[]string()Returns the string value.byte[]Returns a string representation of the value.toJava()Returns a Java representation of the value.Methods inherited from class org.basex.query.value.item.AStr
bool, comparable, diff, eq, equals, plan, sameKeyMethods inherited from class org.basex.query.value.item.Item
atomItem, atomSize, atomValue, cache, dbl, ddo, dec, description, ebv, equiv, flt, hash, input, instanceOf, item, itemAt, iter, itr, materialize, persistent, plan, refineType, reverse, score, seqType, size, subsequence, test, typeId, xdmInfoMethods inherited from class org.basex.query.value.Value
accept, checkUp, compile, copy, count, exprSize, has, inline, inlineable, isEmpty, isItem, iter, iterator, materialize, serialize, serialize, serialize, valueMethods inherited from class org.basex.query.expr.Expr
arg, args, atomIter, data, data, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, optimize, typeCheck, uses, vacuous, visitAllMethods inherited from class org.basex.query.expr.ExprInfo
toErrorString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
EMPTY
Zero-length string.
-
-
Constructor Details
-
Str
Constructor.- Parameters:
value- valuetype- item type
-
-
Method Details
-
get
Returns an instance of this class.- Parameters:
value- value- Returns:
- instance
-
get
Returns an instance of this class.- Parameters:
value- string- Returns:
- instance
-
get
Returns a string representation of the specified value.- Parameters:
value- object (will be converted to token)qc- query contextinf- input info- Returns:
- instance
- Throws:
QueryException- query exception
-
string
Description copied from class:ItemReturns a string representation of the value. -
string
public byte[] string()Returns the string value.- Returns:
- string value
-
simplifyFor
Description copied from class:ExprThis function is called at compile time for expressions whose operands might be simplified.- Overrides:
simplifyForin classExpr- Parameters:
mode- mode of simplificationcc- compilation context- Returns:
- simplified or original expression
- See Also:
-
toJava
Description copied from class:ValueReturns a Java representation of the value.
-