org.basex.query.xquery.path
Class Step

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.Step

public final class Step
extends Arr

Path expression.

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

Field Summary
 Axis axis
          Axis.
 Test test
          Node test.
 
Fields inherited from class org.basex.query.xquery.expr.Arr
list
 
Fields inherited from class org.basex.query.xquery.expr.Expr
type
 
Constructor Summary
Step(Axis a, Test t, Expr[] p)
          Constructor.
 
Method Summary
 Item eval(XQContext ctx)
          Evaluates the expression and returns the resulting item.
 java.lang.String info()
          Returns a string description of the expression.
 boolean simple(Axis ax)
          Checks if this is a simple axis (node test, no predicates).
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.xquery.expr.Arr
comp
 
Methods inherited from class org.basex.query.xquery.expr.Expr
cls, d, e, i, n, node, s, size, str, u
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

axis

public Axis axis
Axis.


test

public Test test
Node test.

Constructor Detail

Step

public Step(Axis a,
            Test t,
            Expr[] p)
Constructor.

Parameters:
a - axis
t - node test
p - predicates
Method Detail

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

info

public 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

simple

public boolean simple(Axis ax)
Checks if this is a simple axis (node test, no predicates).

Parameters:
ax - axis to be checked
Returns:
result of check

toString

public java.lang.String toString()
Specified by:
toString in class Expr