|
||||||||||
| 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.expr.Expr
org.basex.query.expr.Simple
org.basex.query.expr.Pos
public final class Pos
Pos Expression.
| Method Summary | |
|---|---|
Bln |
atomic(QueryContext ctx)
Evaluates the expression and returns the resulting item or a null reference. |
static Expr |
get(Expr expr,
CmpV.Comp cmp,
Expr arg)
Returns an instance of this class, if possible, and the input expression otherwise. |
static Expr |
get(long mn,
long mx)
Returns an position or an optimized expression. |
boolean |
last(QueryContext ctx)
Returns false if no more results can be expected. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
Return |
returned(QueryContext ctx)
Indicates the return type of an expression. |
java.lang.String |
toString()
|
boolean |
uses(Expr.Use use,
QueryContext ctx)
Indicates if an expression uses the specified type. |
| Methods inherited from class org.basex.query.expr.Simple |
|---|
color, comp |
| Methods inherited from class org.basex.query.expr.Expr |
|---|
addText, checkCtx, checkDbl, checkItr, duplicates, e, ebv, i, indexAccessible, indexEquivalent, iter, removable, remove, sameAs, size, test |
| Methods inherited from class org.basex.query.ExprInfo |
|---|
info, name |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Expr get(long mn,
long mx)
mn - minimum valuemx - minimum value
public static Expr get(Expr expr,
CmpV.Comp cmp,
Expr arg)
throws QueryException
expr - calling expressioncmp - comparatorarg - argument
QueryException - evaluation exception
public Bln atomic(QueryContext ctx)
throws QueryException
ExprExpr.iter(org.basex.query.QueryContext) must be implemented.
atomic in class Exprctx - query context
QueryException - query exceptionpublic boolean last(QueryContext ctx)
ctx - query context
public boolean uses(Expr.Use use,
QueryContext ctx)
Exprtrue is returned by default and thus assumed as "worst-case".
uses in class Simpleuse - use type to be checkedctx - query context
public Return returned(QueryContext ctx)
Expr
returned in class Exprctx - query context
public java.lang.String toString()
toString in class ExprInfo
public void plan(Serializer ser)
throws java.io.IOException
ExprInfo
plan in class Simpleser - serializer
java.io.IOException - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||