|
||||||||||
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.FLWOR
public class FLWOR
FLWOR clause.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Use |
Constructor Summary | |
---|---|
FLWOR(ForLet[] f,
Expr w,
Order o,
Expr r)
Constructor. |
|
FLWOR(ForLet[] f,
Expr w,
Order o,
Group g,
Expr r)
FLWOR initialization. |
Method Summary | |
---|---|
String |
color()
Returns a color string for the expression. |
Expr |
comp(QueryContext ctx)
Optimizes and compiles the expression. |
Iter |
iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
boolean |
removable(Var v,
QueryContext ctx)
Checks if the specified variable is removable. |
Expr |
remove(Var v)
Removes the specified variable in a sub expression. |
Return |
returned(QueryContext ctx)
Indicates the return type of an expression. |
String |
toString()
|
boolean |
uses(Expr.Use u,
QueryContext ctx)
Indicates if an expression uses the specified type. |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, atomic, checkCtx, checkDbl, checkItr, duplicates, e, ebv, i, indexAccessible, indexEquivalent, sameAs, size, test, v |
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 |
Constructor Detail |
---|
public FLWOR(ForLet[] f, Expr w, Order o, Expr r)
f
- variable inputsw
- where clauseo
- order expressionsr
- return expressionpublic FLWOR(ForLet[] f, Expr w, Order o, Group g, Expr r)
f
- variable inputsw
- where clauseo
- order expressiong
- group by expressionr
- return expressionMethod Detail |
---|
public Expr comp(QueryContext ctx) throws QueryException
Expr
comp
in class Expr
ctx
- query context
QueryException
- query exceptionpublic Iter iter(QueryContext ctx) throws QueryException
Expr
Expr.atomic(org.basex.query.QueryContext)
must be implemented.
iter
in class Expr
ctx
- query context
QueryException
- query exceptionpublic final boolean uses(Expr.Use u, QueryContext ctx)
Expr
true
is returned by default and thus assumed as "worst-case".
uses
in class Expr
u
- use type to be checkedctx
- query context
public final boolean removable(Var v, QueryContext ctx)
Expr
removable
in class Expr
v
- variable to be removedctx
- query context
public final Expr remove(Var v)
Expr
remove
in class Expr
v
- variable to be removed
public final Return returned(QueryContext ctx)
Expr
returned
in class Expr
ctx
- query context
public final String color()
ExprInfo
color
in class ExprInfo
public final void plan(Serializer ser) throws IOException
ExprInfo
plan
in class ExprInfo
ser
- serializer
IOException
- I/O exceptionpublic final String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |