org.exolab.adaptx.xpath.expressions

Class PredicateExpr

Implemented Interfaces:
XPathExpression

public abstract class PredicateExpr
extends java.lang.Object
implements XPathExpression

This class represents an XPath predicate expression. This class handles predicates as a linked list of PredicateExpr, each containing the actual expression used during evaluation.

Version:
$Revision: 1.1 $ $Date: 2003/05/13 07:55:04 $

Author:
Keith Visco

Fields inherited from interface org.exolab.adaptx.xpath.XPathExpression

BOOLEAN, ERROR, FILTER_EXPR, LOCATION_PATH, NODE_TEST, NUMBER, PATH_EXPR, PRIMARY, STEP, STRING, UNION_EXPR

Method Summary

short
getExprType()
Returns the XPathExpression type
XPathExpression
getExpression()
Returns the actual XPathExpression for this predicate
PredicateExpr
getNext()
Returns the next PredicateExpr for this PredicateExpr
boolean
hasNext()
Returns true if there are more predicate expressions

Method Details

getExprType

public final short getExprType()
Returns the XPathExpression type
Specified by:
getExprType in interface XPathExpression

Returns:
the XPathExpression type


getExpression

public XPathExpression getExpression()
Returns the actual XPathExpression for this predicate

Returns:
the XPathExpression for this predicate


getNext

public PredicateExpr getNext()
Returns the next PredicateExpr for this PredicateExpr


hasNext

public boolean hasNext()
Returns true if there are more predicate expressions

Returns:
true if there are more predicate expressions