|
||||||||||
| 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.path.Path
org.basex.query.path.AxisPath
public class AxisPath
Axis Path expression.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
|---|
Expr.Use |
| Field Summary | |
|---|---|
Step[] |
step
Expression list. |
| Fields inherited from class org.basex.query.path.Path |
|---|
root |
| Method Summary | |
|---|---|
AxisPath |
addPred(Expr pred)
Adds a predicate to the last step. |
Expr |
addText(QueryContext ctx)
Optionally adds a text node to an expression for potential index rewriting. |
Expr |
comp(QueryContext ctx)
Optimizes and compiles the expression. |
static AxisPath |
get(Expr r,
Step... st)
Constructor. |
AxisPath |
invertPath(Expr r,
Step curr)
Inverts a location path. |
Iter |
iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items. |
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. |
Return |
returned(QueryContext ctx)
Indicates the return type of an expression. |
boolean |
sameAs(Expr cmp)
Checks the current and specified expression for equality. |
long |
size(QueryContext ctx)
Returns the sequence size or 1. |
String |
toString()
|
boolean |
uses(Expr.Use u,
QueryContext ctx)
Indicates if an expression uses the specified type. |
| Methods inherited from class org.basex.query.path.Path |
|---|
color, toString |
| Methods inherited from class org.basex.query.expr.Expr |
|---|
atomic, checkCtx, checkDbl, checkItr, duplicates, e, ebv, i, indexAccessible, indexEquivalent, test, v |
| 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 Step[] step
| Method Detail |
|---|
public static final AxisPath get(Expr r,
Step... st)
r - root expression; can be nullst - location steps; will at least have one entry
public final Expr comp(QueryContext ctx)
throws QueryException
Expr
comp in class Pathctx - query context
QueryException - query exception
public Iter iter(QueryContext ctx)
throws QueryException
ExprExpr.atomic(org.basex.query.QueryContext) must be implemented.
iter in class Exprctx - query context
QueryException - query exceptionpublic final long size(QueryContext ctx)
Expr
size in class Exprctx - query context
public final AxisPath invertPath(Expr r,
Step curr)
r - new root nodecurr - current location step
public final AxisPath addPred(Expr pred)
pred - predicate to be added
public final Expr addText(QueryContext ctx)
throws QueryException
Expr
addText in class Exprctx - query context
QueryException - query exception
public final boolean uses(Expr.Use u,
QueryContext ctx)
Exprtrue is returned by default and thus assumed as "worst-case".
uses in class Expru - use type to be checkedctx - query context
public final boolean removable(Var v,
QueryContext ctx)
Expr
removable in class Exprv - variable to be removedctx - query context
public final Expr remove(Var v)
Expr
remove in class Pathv - variable to be removed
public final Return returned(QueryContext ctx)
Expr
returned in class Exprctx - query context
public final boolean sameAs(Expr cmp)
Expr
sameAs in class Exprcmp - expression to be compared
public final void plan(Serializer ser)
throws IOException
ExprInfo
plan in class ExprInfoser - serializer
IOException - I/O exceptionpublic final String toString()
toString in class ExprInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||