Class HasPositionalPredChecker
java.lang.Object
org.loboevolution.apache.xpath.XPathVisitor
org.loboevolution.apache.xpath.axes.HasPositionalPredChecker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
check
(LocPathIterator path) Process the LocPathIterator to see if it contains variables or functions that may make it context dependent.boolean
visitFunction
(Function func) Visit a function.boolean
visitPredicate
(Expression pred) Visit a predicate within a location path.Methods inherited from class org.loboevolution.apache.xpath.XPathVisitor
visitBinaryOperation, visitLocationPath, visitMatchPattern, visitNumberLiteral, visitStep, visitStringLiteral, visitUnaryOperation, visitUnionPath, visitUnionPattern
-
Constructor Details
-
HasPositionalPredChecker
public HasPositionalPredChecker()
-
-
Method Details
-
check
Process the LocPathIterator to see if it contains variables or functions that may make it context dependent.- 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.
-
visitFunction
Visit a function.- Overrides:
visitFunction
in classXPathVisitor
- Parameters:
func
- The function reference object.- Returns:
- true if the sub expressions should be traversed.
-
visitPredicate
Visit a predicate within a location path. Note that there isn't a proper unique component for predicates, and that the expression will be called also for whatever type Expression is.- Overrides:
visitPredicate
in classXPathVisitor
- Parameters:
pred
- The predicate object.- Returns:
- true if the sub expressions should be traversed.
-