public class AbsPathChecker extends XPathVisitor
Constructor and Description |
---|
AbsPathChecker() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkAbsolute(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 |
visitVariableRef(ExpressionOwner owner,
Variable var)
Visit a variable reference.
|
visitBinaryOperation, visitLocationPath, visitMatchPattern, visitNumberLiteral, visitPredicate, visitStep, visitStringLiteral, visitUnaryOperation, visitUnionPath, visitUnionPattern
public boolean checkAbsolute(LocPathIterator path)
path
- LocPathIterator that is assumed to be absolute, but needs checking.public boolean visitFunction(ExpressionOwner owner, Function func)
visitFunction
in class XPathVisitor
owner
- The owner of the expression, to which the expression can
be reset if rewriting takes place.func
- The function reference object.public boolean visitVariableRef(ExpressionOwner owner, Variable var)
visitVariableRef
in class XPathVisitor
owner
- The owner of the expression, to which the expression can
be reset if rewriting takes place.var
- The variable reference object.Copyright © 2019 JBoss by Red Hat. All rights reserved.