org.jaxen.expr

Interface FilterExpr

public interface FilterExpr extends Expr, Predicated

Represents an XPath filter expression. This is production 20 in the XPath 1.0 specification:
[20]   FilterExpr   ::=   PrimaryExpr
| FilterExpr Predicate
Method Summary
booleanasBoolean(Context context)
Evaluates the filter expression on the current context and returns true if at least one node matches.
ExprgetExpr()

Method Detail

asBoolean

public boolean asBoolean(Context context)
Evaluates the filter expression on the current context and returns true if at least one node matches.

Returns: true if a node matches; false if no node matches

getExpr

public Expr getExpr()

Returns: the underlying filter expression