abstract class ExpressionVisitor (View source)

An Expression visitor walks a graph of expressions and turns them into a query for the underlying implementation.

Methods

mixed
walkComparison(Comparison $comparison)

Converts a comparison expression into the target query language output.

mixed
walkValue(Value $value)

Converts a value expression into the target query language part.

mixed
walkCompositeExpression(CompositeExpression $expr)

Converts a composite expression into the target query language output.

mixed
dispatch(Expression $expr)

Dispatches walking an expression to the appropriate handler.

Details

abstract mixed walkComparison(Comparison $comparison)

Converts a comparison expression into the target query language output.

Parameters

Comparison $comparison

Return Value

mixed

abstract mixed walkValue(Value $value)

Converts a value expression into the target query language part.

Parameters

Value $value

Return Value

mixed

abstract mixed walkCompositeExpression(CompositeExpression $expr)

Converts a composite expression into the target query language output.

Parameters

CompositeExpression $expr

Return Value

mixed

mixed dispatch(Expression $expr)

Dispatches walking an expression to the appropriate handler.

Parameters

Expression $expr

Return Value

mixed

Exceptions

RuntimeException