Doctrine\ORM\Query\TreeWalkerChain
Represents a chain of tree walkers that modify an AST and finally emit output.
Only the last walker in the chain can emit output. Any previous walkers can modify
the AST to influence the final output produced by the last walker.
- Author: Roman Borschel <roman@code-factory.org>
Synopsis
class TreeWalkerChain
implements
TreeWalker
{
- // members
- private array $_walkers;
- private $_query;
- private $_parserResult;
- private $_queryComponents;
- // methods
- public void __construct()
- public void addTreeWalker()
- public string walkSelectStatement()
- public string walkSelectClause()
- public string walkFromClause()
- public string walkFunction()
- public string walkOrderByClause()
- public string walkOrderByItem()
- public string walkHavingClause()
- public string walkJoin()
- public string walkSelectExpression()
- public string walkQuantifiedExpression()
- public string walkSubselect()
- public string walkSubselectFromClause()
- public string walkSimpleSelectClause()
- public string walkSimpleSelectExpression()
- public string walkAggregateExpression()
- public string walkGroupByClause()
- public string walkGroupByItem()
- public string walkUpdateStatement()
- public string walkDeleteStatement()
- public string walkDeleteClause()
- public string walkUpdateClause()
- public string walkUpdateItem()
- public string walkWhereClause()
- public string walkConditionalExpression()
- public string walkConditionalTerm()
- public string walkConditionalFactor()
- public string walkConditionalPrimary()
- public string walkExistsExpression()
- public string walkCollectionMemberExpression()
- public string walkEmptyCollectionComparisonExpression()
- public string walkNullComparisonExpression()
- public string walkInExpression()
- public string walkInstanceOfExpression()
- public string walkLiteral()
- public string walkBetweenExpression()
- public string walkLikeExpression()
- public string walkStateFieldPathExpression()
- public string walkComparisonExpression()
- public string walkInputParameter()
- public string walkArithmeticExpression()
- public string walkArithmeticTerm()
- public string walkStringPrimary()
- public string walkArithmeticFactor()
- public string walkSimpleArithmeticExpression()
- public string walkPathExpression()
- public string walkResultVariable()
- public AbstractExecutor getExecutor()
Hierarchy
Implements
Members
private
-
$_parserResult
The ParserResult of the original query that was produced by the Parser. -
$_query
The original Query. -
$_queryComponents
The query components of the original query (the "symbol table") that was produced by the Parser. -
$_walkers
The tree walkers.
Methods
public
- __construct()
- addTreeWalker() — Adds a tree walker to the chain.
- getExecutor() — Gets an executor that can be used to execute the result of this walker.
- walkAggregateExpression() — Walks down an AggregateExpression AST node, thereby generating the appropriate SQL.
- walkArithmeticExpression() — Walks down an ArithmeticExpression AST node, thereby generating the appropriate SQL.
- walkArithmeticFactor() — Walks down an ArithmeticFactor that represents an AST node, thereby generating the appropriate SQL.
- walkArithmeticTerm() — Walks down an ArithmeticTerm AST node, thereby generating the appropriate SQL.
- walkBetweenExpression() — Walks down a BetweenExpression AST node, thereby generating the appropriate SQL.
- walkCollectionMemberExpression() — Walks down a CollectionMemberExpression AST node, thereby generating the appropriate SQL.
- walkComparisonExpression() — Walks down a ComparisonExpression AST node, thereby generating the appropriate SQL.
- walkConditionalExpression() — Walks down a ConditionalExpression AST node, thereby generating the appropriate SQL.
- walkConditionalFactor() — Walks down a ConditionalFactor AST node, thereby generating the appropriate SQL.
- walkConditionalPrimary() — Walks down a ConditionalPrimary AST node, thereby generating the appropriate SQL.
- walkConditionalTerm() — Walks down a ConditionalTerm AST node, thereby generating the appropriate SQL.
- walkDeleteClause() — Walks down a DeleteClause AST node, thereby generating the appropriate SQL.
- walkDeleteStatement() — Walks down a DeleteStatement AST node, thereby generating the appropriate SQL.
- walkEmptyCollectionComparisonExpression() — Walks down an EmptyCollectionComparisonExpression AST node, thereby generating the appropriate SQL.
- walkExistsExpression() — Walks down an ExistsExpression AST node, thereby generating the appropriate SQL.
- walkFromClause() — Walks down a FromClause AST node, thereby generating the appropriate SQL.
- walkFunction() — Walks down a FunctionNode AST node, thereby generating the appropriate SQL.
- walkGroupByClause() — Walks down a GroupByClause AST node, thereby generating the appropriate SQL.
- walkGroupByItem() — Walks down a GroupByItem AST node, thereby generating the appropriate SQL.
- walkHavingClause() — Walks down a HavingClause AST node, thereby generating the appropriate SQL.
- walkInExpression() — Walks down an InExpression AST node, thereby generating the appropriate SQL.
- walkInputParameter() — Walks down an InputParameter AST node, thereby generating the appropriate SQL.
- walkInstanceOfExpression() — Walks down an InstanceOfExpression AST node, thereby generating the appropriate SQL.
- walkJoin() — Walks down a Join AST node and creates the corresponding SQL.
- walkLikeExpression() — Walks down a LikeExpression AST node, thereby generating the appropriate SQL.
- walkLiteral() — Walks down a literal that represents an AST node, thereby generating the appropriate SQL.
- walkNullComparisonExpression() — Walks down a NullComparisonExpression AST node, thereby generating the appropriate SQL.
- walkOrderByClause() — Walks down an OrderByClause AST node, thereby generating the appropriate SQL.
- walkOrderByItem() — Walks down an OrderByItem AST node, thereby generating the appropriate SQL.
- walkPathExpression() — Walks down an PathExpression AST node, thereby generating the appropriate SQL.
- walkQuantifiedExpression() — Walks down a QuantifiedExpression AST node, thereby generating the appropriate SQL.
- walkResultVariable() — Walks down an ResultVariable AST node, thereby generating the appropriate SQL.
- walkSelectClause() — Walks down a SelectClause AST node, thereby generating the appropriate SQL.
- walkSelectExpression() — Walks down a SelectExpression AST node and generates the corresponding SQL.
- walkSelectStatement() — Walks down a SelectStatement AST node, thereby generating the appropriate SQL.
- walkSimpleArithmeticExpression() — Walks down an SimpleArithmeticExpression AST node, thereby generating the appropriate SQL.
- walkSimpleSelectClause() — Walks down a SimpleSelectClause AST node, thereby generating the appropriate SQL.
- walkSimpleSelectExpression() — Walks down a SimpleSelectExpression AST node, thereby generating the appropriate SQL.
- walkStateFieldPathExpression() — Walks down a StateFieldPathExpression AST node, thereby generating the appropriate SQL.
- walkStringPrimary() — Walks down a StringPrimary that represents an AST node, thereby generating the appropriate SQL.
- walkSubselect() — Walks down a Subselect AST node, thereby generating the appropriate SQL.
- walkSubselectFromClause() — Walks down a SubselectFromClause AST node, thereby generating the appropriate SQL.
- walkUpdateClause() — Walks down an UpdateClause AST node, thereby generating the appropriate SQL.
- walkUpdateItem() — Walks down an UpdateItem AST node, thereby generating the appropriate SQL.
- walkUpdateStatement() — Walks down an UpdateStatement AST node, thereby generating the appropriate SQL.
- walkWhereClause() — Walks down a WhereClause AST node, thereby generating the appropriate SQL.