org.basex.query.xpath.locpath
Class PredSimple

java.lang.Object
  extended by org.basex.query.xpath.locpath.Pred
      extended by org.basex.query.xpath.locpath.PredSimple

public final class PredSimple
extends Pred

XPath predicate.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Tim Petrowsky

Method Summary
 Expr indexEquivalent(XPContext ctx, Step step)
          For predicate optimization.
 int indexSizes(XPContext ctx, Step curr, int min)
          For predicate optimization.
 boolean sameAs(Pred pred)
          Compares the predicate for equality.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

indexEquivalent

public Expr indexEquivalent(XPContext ctx,
                            Step step)
                     throws EvalException
Description copied from class: Pred
For predicate optimization.

Parameters:
ctx - root
step - location step
Returns:
Equivalent index-expression or null
Throws:
EvalException - evaluation exception

indexSizes

public int indexSizes(XPContext ctx,
                      Step curr,
                      int min)
Description copied from class: Pred
For predicate optimization.

Parameters:
ctx - root
curr - the location step
min - current minimum size
Returns:
Equivalent index-expression or null

sameAs

public boolean sameAs(Pred pred)
Description copied from class: Pred
Compares the predicate for equality.

Parameters:
pred - predicate to be compared
Returns:
result of check

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object