|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.ExprInfo
org.basex.query.expr.Expr
org.basex.query.value.Value
org.basex.query.value.item.Item
org.basex.query.value.item.AStr
org.basex.query.value.item.Str
public class Str
String item (xs:string
, xs:normalizedString
, xs:language
,
etc.).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Flag |
Field Summary | |
---|---|
static Str |
ZERO
Zero-length string. |
Fields inherited from class org.basex.query.value.item.Item |
---|
score, UNDEF |
Fields inherited from class org.basex.query.value.Value |
---|
type |
Constructor Summary | |
---|---|
Str(byte[] v,
AtomType t)
Constructor. |
Method Summary | |
---|---|
static Str |
get(byte[] v)
Returns an instance of this class. |
static Str |
get(java.lang.Object v,
QueryContext ctx,
InputInfo ii)
Returns an instance of this class. |
static Str |
get(java.lang.String s)
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()
|
Methods inherited from class org.basex.query.value.item.AStr |
---|
bool, diff, eq |
Methods inherited from class org.basex.query.value.item.Item |
---|
castErr, comparable, dbl, dec, description, ebv, equiv, flt, hash, homogeneous, input, isItem, item, itemAt, iter, iterable, itr, materialize, plan, score, score, size, test, type, typeId, writeTo, xdmInfo |
Methods inherited from class org.basex.query.value.Value |
---|
accept, cache, checkUp, compile, copy, count, data, exprSize, has, inline, isValue, iter, iterator, removable, serialize, value |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, uses, visitAll |
Methods inherited from class org.basex.data.ExprInfo |
---|
addPlan, addPlan, info, planAttr, planElem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Str ZERO
Constructor Detail |
---|
public Str(byte[] v, AtomType t)
v
- valuet
- data typeMethod Detail |
---|
public static Str get(byte[] v)
v
- value
public static Str get(java.lang.String s)
s
- string
public static Str get(java.lang.Object v, QueryContext ctx, InputInfo ii) throws QueryException
v
- object (will be converted to token)ctx
- query contextii
- input info
QueryException
- query exceptionpublic final byte[] string(InputInfo ii)
Item
string
in class Item
ii
- input info, use null
if none is available
public final byte[] string()
public final boolean sameAs(Expr cmp)
Expr
sameAs
in class Expr
cmp
- expression to be compared
public final java.lang.String toJava()
Value
toJava
in class Value
public final java.lang.String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |