|
||||||||||
| 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.Preds
public abstract class Preds
Abstract predicate expression, implemented by Pred and
Step.
| Field Summary | |
|---|---|
Expr[] |
pred
Predicates. |
| Constructor Summary | |
|---|---|
Preds(Expr[] p)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
color()
Returns a string description of the expression. |
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. |
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.Expr |
|---|
addText, atomic, checkCtx, checkDbl, checkItr, duplicates, e, ebv, i, indexAccessible, indexEquivalent, iter, returned, 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 |
| Field Detail |
|---|
public Expr[] pred
| Constructor Detail |
|---|
public Preds(Expr[] p)
p - predicates| Method Detail |
|---|
public Expr comp(QueryContext ctx)
throws QueryException
Expr
comp in class Exprctx - query context
QueryException - evaluation exception
public boolean uses(Expr.Use use,
QueryContext ctx)
Exprtrue is returned by default and thus assumed as "worst-case".
uses in class Expruse - use type to be checkedctx - query context
public boolean removable(Var v,
QueryContext ctx)
Expr
removable in class Exprv - variable to be removedctx - query context
public Expr remove(Var v)
Expr
remove in class Exprv - variable to be removed
public final java.lang.String color()
ExprInfoExprInfo.toString() method, the current expressions aren't included
in the output.
color in class ExprInfo
public void plan(Serializer ser)
throws java.io.IOException
ExprInfo
plan in class ExprInfoser - serializer
java.io.IOException - exceptionpublic java.lang.String toString()
toString in class ExprInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||