com.ximpleware.xpath
Class Predicate

java.lang.Object
  extended by com.ximpleware.xpath.Predicate
All Implemented Interfaces:
LocationPathNode

public class Predicate
extends java.lang.Object
implements LocationPathNode

LocationPathExpr uses this class to represent a predicate


Field Summary
 int count
           
 Expr expr
           
 Predicate nextP
           
 
Constructor Summary
Predicate()
           
 
Method Summary
 boolean eval(VTDNav vn)
           
 boolean requireContextSize()
           
 void reset(VTDNav vn)
           
 void setContextSize(int size)
           
 void setIndex(double index)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

count

public int count

expr

public Expr expr

nextP

public Predicate nextP
Constructor Detail

Predicate

public Predicate()
Method Detail

eval

public boolean eval(VTDNav vn)
Specified by:
eval in interface LocationPathNode

requireContextSize

public boolean requireContextSize()

reset

public void reset(VTDNav vn)

setContextSize

public void setContextSize(int size)

setIndex

public void setIndex(double index)
              throws XPathEvalException
Throws:
XPathEvalException

toString

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