org.basex.query.xquery.path
Class PathRel
java.lang.Object
org.basex.query.xquery.expr.Expr
org.basex.query.xquery.expr.Arr
org.basex.query.xquery.path.Path
org.basex.query.xquery.path.PathRel
public final class PathRel
- extends Path
Path expression.
- Author:
- Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen
| Fields inherited from class org.basex.query.xquery.expr.Arr |
list |
| Fields inherited from class org.basex.query.xquery.expr.Expr |
type |
| Methods inherited from class org.basex.query.xquery.path.Path |
info, path |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PathRel
public PathRel(Expr e,
Expr[] p)
- Constructor.
- Parameters:
e - expressionp - expression list
comp
public Expr comp(XQContext ctx)
throws XQException
- Description copied from class:
Expr
- Optimizes and compiles the expression tree.
- Overrides:
comp in class Path
- Parameters:
ctx - query context
- Returns:
- optimized Expression
- Throws:
XQException - evaluation exception
eval
public Item eval(XQContext ctx)
throws XQException
- Description copied from class:
Expr
- Evaluates the expression and returns the resulting item.
- Specified by:
eval in class Expr
- Parameters:
ctx - query context
- Returns:
- resulting item
- Throws:
XQException - evaluation exception
toString
public java.lang.String toString()
- Specified by:
toString in class Expr