|
||||||||||
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.Satisfy
public final class Satisfy
Some/Every satisfier clause.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Use |
Field Summary | |
---|---|
Expr |
sat
Expression list. |
Constructor Summary | |
---|---|
Satisfy(For[] f,
Expr s,
boolean e)
Constructor. |
Method Summary | |
---|---|
Bln |
atomic(QueryContext ctx)
Evaluates the expression and returns the resulting item or a null reference. |
Expr |
comp(QueryContext ctx)
Optimizes and compiles the expression. |
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, checkCtx, checkDbl, checkItr, duplicates, e, ebv, i, indexAccessible, indexEquivalent, iter, sameAs, size, test, v |
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 |
Field Detail |
---|
public Expr sat
Constructor Detail |
---|
public Satisfy(For[] f, Expr s, boolean e)
f
- variable inputss
- satisfiere
- every flagMethod Detail |
---|
public Expr comp(QueryContext ctx) throws QueryException
Expr
comp
in class Expr
ctx
- query context
QueryException
- query exceptionpublic Bln atomic(QueryContext ctx) throws QueryException
Expr
null
reference.
If this method is not overwritten, Expr.iter(org.basex.query.QueryContext)
must be implemented.
atomic
in class Expr
ctx
- query context
QueryException
- query exceptionpublic 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 boolean removable(Var v, QueryContext ctx)
Expr
removable
in class Expr
v
- variable to be removedctx
- query context
public Expr remove(Var v)
Expr
remove
in class Expr
v
- variable to be removed
public Return returned(QueryContext ctx)
Expr
returned
in class Expr
ctx
- query context
public void plan(Serializer ser) throws IOException
ExprInfo
plan
in class ExprInfo
ser
- serializer
IOException
- I/O exceptionpublic String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |