|
||||||||||
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.xpath.locpath.Preds
public final class Preds
Location Steps.
Constructor Summary | |
---|---|
Preds()
|
Method Summary | |
---|---|
void |
add(Expr expr)
Adds an expression as predicate. |
void |
add(Pred pred)
Adds a predicate. |
java.lang.String |
color()
Returns a string description of the expression. |
boolean |
compile(XPContext ctx)
Optimizes the predicates. |
void |
eval(XPContext ctx,
NodeBuilder nodes,
NodeBuilder result)
Evaluates the predicates. |
Pred |
get(int i)
Returns a predicate. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
void |
remove(int s)
Removes the specified step. |
boolean |
sameAs(Preds cmp)
Returns the predicates for equality. |
int |
size()
Returns the number of location steps. |
java.lang.String |
toString()
|
boolean |
usesPos()
Checks whether the predicates make use of the position parameter. |
boolean |
usesSetSize()
Checks whether the predicates make use of the size parameter. |
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 Preds()
Method Detail |
---|
public int size()
public Pred get(int i)
i
- predicate offset
public void add(Pred pred)
pred
- predicate to be addedpublic void remove(int s)
s
- step indexpublic void add(Expr expr)
expr
- expression to be addedpublic void eval(XPContext ctx, NodeBuilder nodes, NodeBuilder result) throws QueryException
ctx
- query contextnodes
- nodes to be evaluatedresult
- result nodes
QueryException
- evaluation exceptionpublic boolean compile(XPContext ctx) throws QueryException
ctx
- query context
QueryException
- evaluation exceptionpublic boolean usesPos()
public boolean usesSetSize()
public boolean sameAs(Preds cmp)
cmp
- predicates to be compared
public void plan(Serializer ser) throws java.io.IOException
ExprInfo
plan
in class ExprInfo
ser
- serializer
java.io.IOException
- exceptionpublic java.lang.String color()
ExprInfo
ExprInfo.toString()
method, the current expressions aren't included
in the output.
color
in class ExprInfo
public java.lang.String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |