public class VarNameCollector extends XPathVisitor
Constructor and Description |
---|
VarNameCollector() |
Modifier and Type | Method and Description |
---|---|
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.
|
visitBinaryOperation, visitFunction, visitLocationPath, visitMatchPattern, visitNumberLiteral, visitPredicate, visitStep, visitStringLiteral, visitUnaryOperation, visitUnionPath, visitUnionPattern
public void reset()
public int getVarCount()
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 © 2012 JBoss by Red Hat. All Rights Reserved.