org.basex.query.xquery.path
Class Path

java.lang.Object
  extended by org.basex.query.xquery.expr.Expr
      extended by org.basex.query.xquery.expr.Arr
          extended by org.basex.query.xquery.path.Path
Direct Known Subclasses:
PathAbs, PathRel

public abstract class Path
extends Arr

Path expression.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.query.xquery.expr.Arr
list
 
Fields inherited from class org.basex.query.xquery.expr.Expr
type
 
Constructor Summary
Path(Expr[] p)
          Constructor.
 
Method Summary
 Expr comp(XQContext ctx)
          Optimizes and compiles the expression tree.
 java.lang.String info()
          Returns a string description of the expression.
 java.lang.String path()
          Returns a string representation of the path.
 
Methods inherited from class org.basex.query.xquery.expr.Expr
cls, d, e, eval, i, n, node, s, size, str, toString, u
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Path

public Path(Expr[] p)
Constructor.

Parameters:
p - expression list
Method Detail

comp

public Expr comp(XQContext ctx)
          throws XQException
Description copied from class: Expr
Optimizes and compiles the expression tree.

Overrides:
comp in class Arr
Parameters:
ctx - query context
Returns:
optimized Expression
Throws:
XQException - evaluation exception

info

public final java.lang.String info()
Description copied from class: Expr
Returns a string description of the expression. Contrary to the Expr.toString() method, the current expressions aren't included in the output.

Specified by:
info in class Expr
Returns:
result of check

path

public final java.lang.String path()
Returns a string representation of the path.

Returns:
path as string