Interface ExprNodeVisitorWithParent

All Known Implementing Classes:
ExprNodeGroupingVisitorWParent, ExprNodeIdentifierCollectVisitorWContainer, ExprNodeIdentVisitorWParent, ExprNodePreviousVisitorWParent, ExprNodeSubselectDeclaredNoTraverseVisitor

public interface ExprNodeVisitorWithParent
Visitor interface for use with expression node trees, receives both the child node and the parent node (or null to indicate no parent node).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isVisit(ExprNode exprNode)
    Allows visitor to indicate whether to visit a given node.
    default boolean
     
    void
    visit(ExprNode exprNode, ExprNode parentExprNode)
    Visit the given expression node.
  • Method Details

    • isVisit

      boolean isVisit(ExprNode exprNode)
      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.
      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
    • visit

      void visit(ExprNode exprNode, ExprNode parentExprNode)
      Visit the given expression node.
      Parameters:
      exprNode - is the expression node to visit
      parentExprNode - parent to visit
    • isWalkDeclExprParam

      default boolean isWalkDeclExprParam()