org.apache.xalan.templates
Class AbsPathChecker
public class AbsPathChecker
This class runs over a path expression that is assumed to be absolute, and
checks for variables and the like that may make it context dependent.
visitBinaryOperation , visitFunction , visitLocationPath , visitMatchPattern , visitNumberLiteral , visitPredicate , visitStep , visitStringLiteral , visitUnaryOperation , visitUnionPath , visitUnionPattern , visitVariableRef |
checkAbsolute
public boolean checkAbsolute(LocPathIterator path)
Process the LocPathIterator to see if it contains variables
or functions that may make it context dependent.
path
- LocPathIterator that is assumed to be absolute, but needs checking.
- true if the path is confirmed to be absolute, false if it
may contain context dependencies.
visitFunction
public boolean visitFunction(ExpressionOwner owner,
Function func)
Visit a function.
- visitFunction in interface XPathVisitor
owner
- The owner of the expression, to which the expression can
be reset if rewriting takes place.func
- The function reference object.
- true if the sub expressions should be traversed.
visitVariableRef
public boolean visitVariableRef(ExpressionOwner owner,
Variable var)
Visit a variable reference.
- visitVariableRef in interface XPathVisitor
owner
- The owner of the expression, to which the expression can
be reset if rewriting takes place.var
- The variable reference object.
- true if the sub expressions should be traversed.
Copyright B) 2004 Apache XML Project. All Rights Reserved.