org.basex.query.xpath.expr
Class Path
java.lang.Object
org.basex.query.ExprInfo
org.basex.query.xpath.expr.Expr
org.basex.query.xpath.expr.Arr
org.basex.query.xpath.expr.Path
public final class Path
- extends Arr
Path Expression.
This Expression represents a relative location path operating
on a nodeset (return value of expression).
- Author:
- Workgroup DBIS, University of Konstanz 2005-08, ISC License, Tim Petrowsky
Fields inherited from class org.basex.query.xpath.expr.Arr |
expr |
Constructor Summary |
Path(Expr e,
Expr p)
Constructor for a relative location path. |
Method Summary |
Item |
eval(XPContext ctx)
Evaluates the expression with the specified context set. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the
specified serializer. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Path
public Path(Expr e,
Expr p)
- Constructor for a relative location path.
- Parameters:
e
- Expression evaluating to a nodesetp
- Location Path (or maybe other Expression after optimization)
eval
public Item eval(XPContext ctx)
throws QueryException
- Description copied from class:
Expr
- Evaluates the expression with the specified context set. Additionally
provides a context
- Specified by:
eval
in class Expr
- Parameters:
ctx
- query context
- Returns:
- resulting XPathValue
- Throws:
QueryException
- evaluation exception
plan
public void plan(Serializer ser)
throws java.io.IOException
- Description copied from class:
ExprInfo
- Recursively sends the abstract syntax of this expression to the
specified serializer.
- Overrides:
plan
in class Arr
- Parameters:
ser
- serializer
- Throws:
java.io.IOException
- exception
toString
public java.lang.String toString()
- Specified by:
toString
in class ExprInfo