|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.xpath.expr.Expr
org.basex.query.xpath.item.Item
org.basex.query.xpath.item.Str
public final class Str
XPath Literal.
Constructor Summary | |
---|---|
Str(byte[] chars)
Constructor. |
Method Summary | |
---|---|
boolean |
appr(Item val)
Checks the approximate equality of the value and the specified value. |
boolean |
bool()
Returns the boolean value. |
boolean |
eq(Item val)
Checks the equality of the value and the specified value. |
Str |
eval(XPContext ctx)
Evaluates the expression with the specified context set. |
double |
num()
Returns the double value. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
int |
prec()
Returns the evaluation precedence. |
byte[] |
str()
Returns the literal value. |
java.lang.String |
toString()
|
Methods inherited from class org.basex.query.xpath.item.Item |
---|
comp, same, serialize, serialize, size, usesPos, usesSize |
Methods inherited from class org.basex.query.xpath.expr.Expr |
---|
indexEquivalent, indexSizes, returnedValue, sameAs |
Methods inherited from class org.basex.query.ExprInfo |
---|
color, info, name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Str(byte[] chars)
chars
- Characters to representMethod Detail |
---|
public Str eval(XPContext ctx)
Expr
eval
in class Expr
ctx
- query context
public boolean bool()
Item
bool
in class Item
public byte[] str()
Item
str
in class Item
public double num()
Item
num
in class Item
public int prec()
Item
public boolean eq(Item val)
Item
eq
in class Item
val
- value to be compared
public boolean appr(Item val)
Item
val
- value to be compared
public java.lang.String toString()
toString
in class Item
public void plan(Serializer ser) throws java.io.IOException
ExprInfo
plan
in class ExprInfo
ser
- serializer
java.io.IOException
- exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |