org.apache.xpath.axes
public class HasPositionalPredChecker extends XPathVisitor
Method Summary | |
---|---|
static boolean | check(LocPathIterator path)
Process the LocPathIterator to see if it contains variables
or functions that may make it context dependent. |
boolean | visitFunction(ExpressionOwner owner, Function func)
Visit a function. |
boolean | visitPredicate(ExpressionOwner owner, Expression pred)
Visit a predicate within a location path. |
Parameters: path LocPathIterator that is assumed to be absolute, but needs checking.
Returns: true if the path is confirmed to be absolute, false if it may contain context dependencies.
Parameters: owner The owner of the expression, to which the expression can be reset if rewriting takes place. func The function reference object.
Returns: true if the sub expressions should be traversed.
Parameters: owner The owner of the expression, to which the expression can be reset if rewriting takes place. pred The predicate object.
Returns: true if the sub expressions should be traversed.