|
|||||||||
| 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
public abstract class Item
Abstract item.
| Field Summary |
|---|
| Fields inherited from class org.basex.query.xquery.expr.Expr |
|---|
type |
| Method Summary | |
|---|---|
boolean |
bool()
Returns a boolean representation of the item. |
Item |
castErr(java.lang.Object val)
Throws a cast error. |
Expr |
comp(XQContext ctx)
Optimizes and compiles the expression tree. |
double |
dbl()
Returns a double representation of the item. |
int |
diff(Item it)
Returns the difference between the current and the specified item. |
abstract boolean |
eq(Item it)
Checks the items for equality. |
Item |
eval(XQContext ctx)
Evaluates the expression and returns the resulting item. |
float |
flt()
Returns a float representation of the item. |
boolean |
i()
Checks if this is an item. |
java.lang.String |
info()
Returns a string description of the expression. |
Iter |
iter()
Returns an iterator. |
long |
itr()
Returns a numeric (long) representation of the item. |
void |
serialize(PrintOutput out,
XQContext ctx,
int level)
Serializes the item. |
void |
serialize(ResultReader rr,
XQContext ctx,
int level)
Serializes the item. |
int |
size()
Returns the sequence size or 0. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.xquery.expr.Expr |
|---|
cls, d, e, n, node, s, str, u |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean bool()
throws XQException
XQException - evaluation exception
public final Item castErr(java.lang.Object val)
throws XQException
val - cast value
XQException - evaluation exceptionpublic Expr comp(XQContext ctx)
Expr
comp in class Exprctx - query context
public double dbl()
throws XQException
XQException - evaluation exception
public int diff(Item it)
throws XQException
it - item to be compared.
XQException - evaluation exception
public abstract boolean eq(Item it)
throws XQException
it - item to be compared.
XQException - evaluation exceptionpublic final Item eval(XQContext ctx)
Expr
eval in class Exprctx - query context
public float flt()
throws XQException
XQException - evaluation exceptionpublic final boolean i()
Expr
i in class Exprpublic final java.lang.String info()
ExprExpr.toString() method, the current expressions aren't included
in the output.
info in class Exprpublic Iter iter()
public long itr()
throws XQException
XQException - evaluation exception
public void serialize(PrintOutput out,
XQContext ctx,
int level)
throws XQException,
java.io.IOException
out - output streamctx - query contextlevel - current level
java.io.IOException - I/O exception
XQException - evaluation exception
public void serialize(ResultReader rr,
XQContext ctx,
int level)
throws org.xml.sax.SAXException
rr - content handlerctx - query contextlevel - current level
org.xml.sax.SAXException - SAX exceptionpublic int size()
Expr
size in class Exprpublic java.lang.String toString()
toString in class Expr
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||