MySQL 9.1.0
Source Code Documentation
Select_lex_visitor Class Referenceabstract

Abstract base class for traversing the Query_block tree. More...

#include <select_lex_visitor.h>

Inheritance diagram for Select_lex_visitor:
[legend]

Public Member Functions

virtual bool visits_in_prefix_order () const
 
bool visit (Query_expression *unit)
 
bool visit (Query_block *query_block)
 
bool visit (Item *item)
 Called for all nodes of all expression trees (i.e. Item trees). More...
 
virtual ~Select_lex_visitor ()=0
 Gcc demands an implementation for a virtual destructor. More...
 

Protected Member Functions

virtual bool visit_union (Query_expression *)
 
virtual bool visit_query_block (Query_block *)
 
virtual bool visit_item (Item *)
 

Detailed Description

Abstract base class for traversing the Query_block tree.

In order to use it, a client defines a subclass, overriding the member functions that visit the objects of interest. If a function returns true, traversal is aborted.

Constructor & Destructor Documentation

◆ ~Select_lex_visitor()

Select_lex_visitor::~Select_lex_visitor ( )
pure virtualdefault

Gcc demands an implementation for a virtual destructor.

Member Function Documentation

◆ visit() [1/3]

bool Select_lex_visitor::visit ( Item item)
inline

Called for all nodes of all expression trees (i.e. Item trees).

◆ visit() [2/3]

bool Select_lex_visitor::visit ( Query_block query_block)
inline

◆ visit() [3/3]

bool Select_lex_visitor::visit ( Query_expression unit)
inline

◆ visit_item()

virtual bool Select_lex_visitor::visit_item ( Item )
inlineprotectedvirtual

Reimplemented in Service_visitor.

◆ visit_query_block()

virtual bool Select_lex_visitor::visit_query_block ( Query_block )
inlineprotectedvirtual

◆ visit_union()

virtual bool Select_lex_visitor::visit_union ( Query_expression )
inlineprotectedvirtual

◆ visits_in_prefix_order()

virtual bool Select_lex_visitor::visits_in_prefix_order ( ) const
inlinevirtual

The documentation for this class was generated from the following files: