org.apache.xalan.templates
Class VarNameCollector
public class VarNameCollector
This class visits variable refs in an XPath and collects their QNames.
visitBinaryOperation, visitFunction, visitLocationPath, visitMatchPattern, visitNumberLiteral, visitPredicate, visitStep, visitStringLiteral, visitUnaryOperation, visitUnionPath, visitUnionPattern, visitVariableRef |
getVarCount
public int getVarCount()
Get the number of variable references that were collected.
reset
public void reset()
Reset the list for a fresh visitation and collection.
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) 2005 Apache XML Project. All Rights Reserved.