Class ExprNodeVariableVisitor

java.lang.Object
com.espertech.esper.common.internal.epl.expression.visitor.ExprNodeVariableVisitor
All Implemented Interfaces:
ExprNodeVisitor

public class ExprNodeVariableVisitor extends Object implements ExprNodeVisitor
Visitor for expression node trees that determines if the expressions within contain a variable.
  • Constructor Details

  • Method Details

    • isVisit

      public boolean isVisit(ExprNode exprNode)
      Description copied from interface: ExprNodeVisitor
      Allows visitor to indicate whether to visit a given node. Implicitly if a visitor doesn't visit a node it would also not visit any descendent child nodes of that node.
      Specified by:
      isVisit in interface ExprNodeVisitor
      Parameters:
      exprNode - is the node in questions
      Returns:
      true if the visitor wants to visit the child node (next call is visit), or false to skip child
    • isHasVariables

      public boolean isHasVariables()
      Returns true if the visitor finds a variable value.
      Returns:
      true for variable present in expression
    • visit

      public void visit(ExprNode exprNode)
      Description copied from interface: ExprNodeVisitor
      Visit the given expression node.
      Specified by:
      visit in interface ExprNodeVisitor
      Parameters:
      exprNode - is the expression node to visit
    • getVariableNames

      public Map<String,VariableMetaData> getVariableNames()