|
||||||||||
| 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.expr.Expr
org.basex.query.xpath.locpath.LocPath
public abstract class LocPath
LocationPath (absolute or relative).
| Field Summary | |
|---|---|
Steps |
steps
List of location steps. |
| Constructor Summary | |
|---|---|
LocPath()
|
|
| Method Summary | |
|---|---|
void |
addPosPred(XPContext ctx)
Limit evaluation of predicates to first hit if only existence of path has to be checked. |
boolean |
checkAxes()
Checks if the specified location step has suitable index axes. |
java.lang.String |
color()
Returns a string description of the expression. |
Expr |
comp(XPContext ctx)
Optimizes the expression. |
abstract Nod |
eval(XPContext ctx)
Evaluates the expression with the specified context set. |
IndexToken |
indexable(XPContext ctx,
Expr exp,
Comp cmp)
Checks if the path is indexable. |
LocPath |
invertPath(Step curr)
Inverts a location path. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
boolean |
sameAs(Expr cmp)
Checks current and specified expression for equivalence. |
java.lang.String |
toString()
|
boolean |
usesPos()
Checks whether this Expression (or its children) make use of the position parameter. |
boolean |
usesSize()
Checks whether this Expression (or its children) make use of the setsize parameter. |
| Methods inherited from class org.basex.query.xpath.expr.Expr |
|---|
indexEquivalent, indexSizes, returnedValue |
| 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 Steps steps
| Constructor Detail |
|---|
public LocPath()
| Method Detail |
|---|
public abstract Nod eval(XPContext ctx)
throws QueryException
Expr
eval in class Exprctx - query context
QueryException - evaluation exception
public final Expr comp(XPContext ctx)
throws QueryException
Expr
comp in class Exprctx - expression context
QueryException - evaluation exceptionpublic final boolean sameAs(Expr cmp)
Expr
sameAs in class Exprcmp - expression to be compared
public final boolean usesSize()
Expr
usesSize in class Exprpublic final boolean usesPos()
Expr
usesPos in class Exprpublic final void addPosPred(XPContext ctx)
ctx - query context
public final IndexToken indexable(XPContext ctx,
Expr exp,
Comp cmp)
ctx - query contextexp - expression which must be a literalcmp - comparator
public final boolean checkAxes()
public final LocPath invertPath(Step curr)
curr - current location step
public final void plan(Serializer ser)
throws java.io.IOException
ExprInfo
plan in class ExprInfoser - serializer
java.io.IOException - exceptionpublic final java.lang.String color()
ExprInfoExprInfo.toString() method, the current expressions aren't included
in the output.
color in class ExprInfopublic java.lang.String toString()
toString in class ExprInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||