|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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(int min,
int max)
Adds a position predicate. |
void |
add(Pred pred)
Adds a predicate. |
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 |
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 java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Preds()
| Method Detail |
|---|
public void add(Expr expr)
expr - expression to be added
public void add(int min,
int max)
min - minimum valuemax - maximum valuepublic void add(Pred pred)
pred - predicate to be added
public boolean compile(XPContext ctx)
throws EvalException
ctx - query context
EvalException - evaluation exception
public void eval(XPContext ctx,
NodeBuilder nodes,
NodeBuilder result)
throws EvalException
ctx - query contextnodes - nodes to be evaluatedresult - result nodes
EvalException - evaluation exceptionpublic Pred get(int i)
i - predicate offset
public void remove(int s)
s - step indexpublic boolean sameAs(Preds cmp)
cmp - predicates to be compared
public int size()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean usesPos()
public boolean usesSetSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||