org.apache.xalan.templates
public class VarNameCollector extends XPathVisitor
Method Summary | |
---|---|
int | getVarCount()
Get the number of variable references that were collected. |
void | reset()
Reset the list for a fresh visitation and collection. |
boolean | visitVariableRef(ExpressionOwner owner, Variable var)
Visit a variable reference. |
Returns: the size of the list.
Parameters: owner The owner of the expression, to which the expression can be reset if rewriting takes place. var The variable reference object.
Returns: true if the sub expressions should be traversed.