|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xpath.expr.Expr
public abstract class Expr
Common interface for all expressions.
| Constructor Summary | |
|---|---|
Expr()
|
|
| Method Summary | |
|---|---|
abstract Expr |
compile(XPContext ctx)
Tries to optimize the Expression. |
abstract Item |
eval(XPContext ctx)
Evaluates the expression with the specified context set. |
Expr |
indexEquivalent(XPContext ctx,
Step step)
For predicate optimization. |
int |
indexSizes(XPContext ctx,
Step step,
int min)
For predicate optimization. |
java.lang.Class<?> |
returnedValue()
Gets the expected return type. |
boolean |
sameAs(Expr cmp)
Checks current and specified expression for equivalence. |
abstract java.lang.String |
toString()
|
abstract boolean |
usesPos()
Checks whether this Expression (or its children) make use of the position parameter. |
abstract boolean |
usesSize()
Checks whether this Expression (or its children) make use of the setsize parameter. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Expr()
| Method Detail |
|---|
public abstract Expr compile(XPContext ctx)
throws EvalException
ctx - expression context
EvalException - evaluation exception
public abstract Item eval(XPContext ctx)
throws EvalException
ctx - query context
EvalException - evaluation exception
public Expr indexEquivalent(XPContext ctx,
Step step)
throws EvalException
ctx - rootstep - the LocationStep this Expression is a predicate of
EvalException - evaluation exception
public int indexSizes(XPContext ctx,
Step step,
int min)
ctx - rootstep - the LocationStep this Expression is a predicate ofmin - current minimum size
public final java.lang.Class<?> returnedValue()
public boolean sameAs(Expr cmp)
cmp - expression to be compared
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic abstract boolean usesPos()
public abstract boolean usesSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||