MySQL  8.0.18
Source Code Documentation
Select_lex_visitor Class Referenceabstract

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

#include <select_lex_visitor.h>

Inheritance diagram for Select_lex_visitor:
Service_visitor

Public Member Functions

virtual bool visits_in_prefix_order () const
 
bool visit (SELECT_LEX_UNIT *unit)
 
bool visit (SELECT_LEX *select_lex)
 
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 (SELECT_LEX_UNIT *)
 
virtual bool visit_query_block (SELECT_LEX *)
 
virtual bool visit_item (Item *)
 

Detailed Description

Abstract base class for traversing the SELECT_LEX 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 virtual

Gcc demands an implementation for a virtual destructor.

Member Function Documentation

◆ visit() [1/3]

bool Select_lex_visitor::visit ( SELECT_LEX_UNIT unit)
inline

◆ visit() [2/3]

bool Select_lex_visitor::visit ( SELECT_LEX select_lex)
inline

◆ visit() [3/3]

bool Select_lex_visitor::visit ( Item item)
inline

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

◆ 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 ( SELECT_LEX )
inlineprotectedvirtual

◆ visit_union()

virtual bool Select_lex_visitor::visit_union ( SELECT_LEX_UNIT )
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: