public class ExprNodeVariableVisitor extends Object implements ExprNodeVisitor
Constructor and Description |
---|
ExprNodeVariableVisitor(VariableService variableService) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getVariableNames()
Returns the set of variable names encoountered.
|
boolean |
isHasVariables()
Returns true if the visitor finds a variable value.
|
boolean |
isVisit(ExprNode exprNode)
Allows visitor to indicate whether to visit a given node.
|
void |
visit(ExprNode exprNode)
Visit the given expression node.
|
public ExprNodeVariableVisitor(VariableService variableService)
public boolean isVisit(ExprNode exprNode)
ExprNodeVisitor
isVisit
in interface ExprNodeVisitor
exprNode
- is the node in questionspublic boolean isHasVariables()
public void visit(ExprNode exprNode)
ExprNodeVisitor
visit
in interface ExprNodeVisitor
exprNode
- is the expression node to visit