Package org.jaxen.expr
Interface FilterExpr
-
- All Superinterfaces:
Expr
,Predicated
,java.io.Serializable
- All Known Implementing Classes:
DefaultFilterExpr
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
asBoolean(Context context)
Evaluates the filter expression on the current context and returns true if at least one node matches.Expr
getExpr()
-
Methods inherited from interface org.jaxen.expr.Predicated
addPredicate, getPredicates, getPredicateSet
-
-
-
-
Method Detail
-
asBoolean
boolean asBoolean(Context context) throws JaxenException
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
- Throws:
JaxenException
-
getExpr
Expr getExpr()
- Returns:
- the underlying filter expression
-
-