|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A basic interface for LocationStep or FilterExpr
| Field Summary |
|---|
| 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 | |
|---|---|
void |
evaluatePredicates(NodeSet nodes,
XPathContext context)
Evaluates the PredicateExpr of this PathComponent against the given NodeSet and XPathContext. |
double |
getDefaultPriority()
Determines the priority of a PatternExpr as follows: |
PredicateExpr |
getPredicate()
Returns the PredicateExpr of this PathComponent |
boolean |
hasPredicates()
Returns true if this PathComponent has predicates expressions. |
| Methods inherited from interface org.exolab.adaptx.xpath.XPathExpression |
|---|
evaluate, getExprType, toString |
| Methods inherited from interface org.exolab.adaptx.xpath.expressions.MatchExpression |
|---|
matches |
| Method Detail |
public double getDefaultPriority()
From the 19991116 XSLT 1.0 Recommendation:
+ If the pattern has the form of a QName preceded by a
ChildOrAttributeAxisSpecifier or has the form
processing-instruction(Literal) then the priority is 0.
+ If the pattern has the form NCName:* preceded by a
ChildOrAttributeAxisSpecifier, then the priority is -0.25
+ Otherwise if the pattern consists of just a NodeTest
preceded by a ChildOrAttributeAxisSpecifier then the
priority is -0.5
+ Otherwise the priority is 0.5
public void evaluatePredicates(NodeSet nodes,
XPathContext context)
throws XPathException
nodes - the current NodeSetcontext - the XPathContext for use during evaluation.
XPathExceptionpublic PredicateExpr getPredicate()
public boolean hasPredicates()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||