| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xpath.XPathVisitor
org.apache.xalan.templates.VarNameCollector
public class VarNameCollector
This class visits variable refs in an XPath and collects their QNames.
| Field Summary | |
|---|---|
| (package private)  java.util.Vector | m_refs | 
| Constructor Summary | |
|---|---|
| VarNameCollector() | |
| Method Summary | |
|---|---|
| (package private)  boolean | doesOccur(QName refName)Tell if the given qualified name occurs in the list of qualified names collected. | 
|  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. | 
| Methods inherited from class org.apache.xpath.XPathVisitor | 
|---|
| visitBinaryOperation, visitFunction, visitLocationPath, visitMatchPattern, visitNumberLiteral, visitPredicate, visitStep, visitStringLiteral, visitUnaryOperation, visitUnionPath, visitUnionPattern | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
java.util.Vector m_refs
| Constructor Detail | 
|---|
public VarNameCollector()
| Method Detail | 
|---|
public void reset()
public int getVarCount()
boolean doesOccur(QName refName)
refName - Must be a valid qualified name.
public boolean visitVariableRef(ExpressionOwner owner,
                                Variable var)
visitVariableRef in class XPathVisitorowner - The owner of the expression, to which the expression can 
              be reset if rewriting takes place.var - The variable reference object.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||