org.planx.xpath.expr
Class PredicateList

java.lang.Object
  extended by org.planx.xpath.expr.PredicateList

public class PredicateList
extends Object

A list of predicates, including the ability to filter a node set through all predicates.


Constructor Summary
PredicateList()
          Construct an empty list of predicates.
 
Method Summary
 void addPredicate(Expression expr)
           
 XNodeSet evaluate(XNodeSet ctxtSet, Environment env, Navigator nav)
          Evaluates all predicates for each node in the node set and returns the matching nodes.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PredicateList

public PredicateList()
Construct an empty list of predicates.

Method Detail

addPredicate

public void addPredicate(Expression expr)

evaluate

public XNodeSet evaluate(XNodeSet ctxtSet,
                         Environment env,
                         Navigator nav)
                  throws XPathException
Evaluates all predicates for each node in the node set and returns the matching nodes. The predicates will be evaluated by setting the context size to the size of the node set and context position to the index of a node in the node set.

Throws:
XPathException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.