|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xquery.expr.Expr
org.basex.query.xquery.item.Item
org.basex.query.xquery.item.Str
public class Str
String item.
| Field Summary | |
|---|---|
static Str |
ZERO
String data. |
| Fields inherited from class org.basex.query.xquery.expr.Expr |
|---|
type |
| Constructor Summary | |
|---|---|
Str(byte[] v,
Type t)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
bool()
Returns a boolean representation of the item. |
double |
dbl()
Returns a double representation of the item. |
int |
diff(Item it)
Returns the difference between the current and the specified item. |
boolean |
eq(Item it)
Checks the items for equality. |
float |
flt()
Returns a float representation of the item. |
static Str |
get(byte[] v)
Returns an instance of this class. |
long |
itr()
Returns a numeric (long) representation of the item. |
boolean |
s()
Checks if this is a string item. |
static void |
serialize(PrintOutput out,
byte[] val)
Serializes the specified text. |
void |
serialize(PrintOutput out,
XQContext ctx,
int level)
Serializes the item. |
byte[] |
str()
Returns an atomized string. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.xquery.item.Item |
|---|
castErr, comp, eval, i, info, iter, serialize, size |
| Methods inherited from class org.basex.query.xquery.expr.Expr |
|---|
cls, d, e, n, node, u |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Str ZERO
| Constructor Detail |
|---|
public Str(byte[] v,
Type t)
v - valuet - data type| Method Detail |
|---|
public boolean bool()
Item
bool in class Item
public double dbl()
throws XQException
Item
dbl in class ItemXQException - evaluation exception
public int diff(Item it)
throws XQException
Item
diff in class Itemit - item to be compared.
XQException - evaluation exception
public boolean eq(Item it)
throws XQException
Item
eq in class Itemit - item to be compared.
XQException - evaluation exception
public final float flt()
throws XQException
Item
flt in class ItemXQException - evaluation exceptionpublic static Str get(byte[] v)
v - value
public long itr()
throws XQException
Item
itr in class ItemXQException - evaluation exceptionpublic boolean s()
Expr
s in class Expr
public static void serialize(PrintOutput out,
byte[] val)
throws java.io.IOException
out - output streamval - text to be serialized
java.io.IOException - I/O exception
public final void serialize(PrintOutput out,
XQContext ctx,
int level)
throws java.io.IOException
Item
serialize in class Itemout - output streamctx - query contextlevel - current level
java.io.IOException - I/O exceptionpublic final byte[] str()
Expr
str in class Exprpublic java.lang.String toString()
toString in class Item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||