PHP Class Pinq\Expressions\ExpressionWalker

Author: Elliot Levin ([email protected])
Mostra file Open project: timetoogo/pinq Class Usage Examples

Public Methods

Method Description
walk ( Expression $expression = null ) : Expression | null Walks the expression tree and returns the updated expression tree.
walkAll ( array $expressions ) : Expression[]
walkArgument ( ArgumentExpression $expression )
walkArray ( ArrayExpression $expression )
walkArrayItem ( ArrayItemExpression $expression )
walkAssignment ( AssignmentExpression $expression )
walkBinaryOperation ( BinaryOperationExpression $expression )
walkCast ( CastExpression $expression )
walkClassConstant ( ClassConstantExpression $expression )
walkClosure ( ClosureExpression $expression )
walkClosureUsedVariable ( ClosureUsedVariableExpression $expression )
walkConstant ( ConstantExpression $expression )
walkEmpty ( EmptyExpression $expression )
walkField ( FieldExpression $expression )
walkFunctionCall ( FunctionCallExpression $expression )
walkIndex ( IndexExpression $expression )
walkInvocation ( InvocationExpression $expression )
walkIsset ( IssetExpression $expression )
walkMethodCall ( MethodCallExpression $expression )
walkNew ( NewExpression $expression )
walkParameter ( ParameterExpression $expression )
walkReturn ( ReturnExpression $expression )
walkStaticField ( StaticFieldExpression $expression )
walkStaticMethodCall ( StaticMethodCallExpression $expression )
walkTernary ( TernaryExpression $expression )
walkThrow ( ThrowExpression $expression )
walkUnaryOperation ( UnaryOperationExpression $expression )
walkUnset ( UnsetExpression $expression )
walkValue ( ValueExpression $expression )
walkVariable ( VariableExpression $expression )

Protected Methods

Method Description
doWalk ( Expression $expression ) : Expression
doWalkAll ( array $expressions ) : Expression[]

Method Details

doWalk() protected method

protected doWalk ( Expression $expression ) : Expression
$expression Expression
return Expression

doWalkAll() protected method

protected doWalkAll ( array $expressions ) : Expression[]
$expressions array
return Expression[]

walk() final public method

Walks the expression tree and returns the updated expression tree.
final public walk ( Expression $expression = null ) : Expression | null
$expression Expression
return Expression | null

walkAll() final public method

final public walkAll ( array $expressions ) : Expression[]
$expressions array
return Expression[]

walkArgument() public method

public walkArgument ( ArgumentExpression $expression )
$expression ArgumentExpression

walkArray() public method

public walkArray ( ArrayExpression $expression )
$expression ArrayExpression

walkArrayItem() public method

public walkArrayItem ( ArrayItemExpression $expression )
$expression ArrayItemExpression

walkAssignment() public method

public walkAssignment ( AssignmentExpression $expression )
$expression AssignmentExpression

walkBinaryOperation() public method

public walkBinaryOperation ( BinaryOperationExpression $expression )
$expression BinaryOperationExpression

walkCast() public method

public walkCast ( CastExpression $expression )
$expression CastExpression

walkClassConstant() public method

public walkClassConstant ( ClassConstantExpression $expression )
$expression ClassConstantExpression

walkClosure() public method

public walkClosure ( ClosureExpression $expression )
$expression ClosureExpression

walkClosureUsedVariable() public method

public walkClosureUsedVariable ( ClosureUsedVariableExpression $expression )
$expression ClosureUsedVariableExpression

walkConstant() public method

public walkConstant ( ConstantExpression $expression )
$expression ConstantExpression

walkEmpty() public method

public walkEmpty ( EmptyExpression $expression )
$expression EmptyExpression

walkField() public method

public walkField ( FieldExpression $expression )
$expression FieldExpression

walkFunctionCall() public method

public walkFunctionCall ( FunctionCallExpression $expression )
$expression FunctionCallExpression

walkIndex() public method

public walkIndex ( IndexExpression $expression )
$expression IndexExpression

walkInvocation() public method

public walkInvocation ( InvocationExpression $expression )
$expression InvocationExpression

walkIsset() public method

public walkIsset ( IssetExpression $expression )
$expression IssetExpression

walkMethodCall() public method

public walkMethodCall ( MethodCallExpression $expression )
$expression MethodCallExpression

walkNew() public method

public walkNew ( NewExpression $expression )
$expression NewExpression

walkParameter() public method

public walkParameter ( ParameterExpression $expression )
$expression ParameterExpression

walkReturn() public method

public walkReturn ( ReturnExpression $expression )
$expression ReturnExpression

walkStaticField() public method

public walkStaticField ( StaticFieldExpression $expression )
$expression StaticFieldExpression

walkStaticMethodCall() public method

public walkStaticMethodCall ( StaticMethodCallExpression $expression )
$expression StaticMethodCallExpression

walkTernary() public method

public walkTernary ( TernaryExpression $expression )
$expression TernaryExpression

walkThrow() public method

public walkThrow ( ThrowExpression $expression )
$expression ThrowExpression

walkUnaryOperation() public method

public walkUnaryOperation ( UnaryOperationExpression $expression )
$expression UnaryOperationExpression

walkUnset() public method

public walkUnset ( UnsetExpression $expression )
$expression UnsetExpression

walkValue() public method

public walkValue ( ValueExpression $expression )
$expression ValueExpression

walkVariable() public method

public walkVariable ( VariableExpression $expression )
$expression VariableExpression