PHP Class Pinq\Parsing\Resolvers\FunctionMagicResolver

..) and scopes (self::...) to their actual values.
Author: Elliot Levin ([email protected])
Inheritance: extends Pinq\Expressions\ExpressionWalker
显示文件 Open project: timetoogo/pinq Class Usage Examples

Public Methods

Method Description
__construct ( Pinq\Parsing\IFunctionMagic $functionMagic )
resolve ( Pinq\Parsing\IFunctionMagic $functionMagic, array $expressions ) : Expression[] Resolves any magic constants / scopes with the supplied resolved values.
walkClassConstant ( ClassConstantExpression $expression )
walkClosure ( ClosureExpression $expression )
walkConstant ( ConstantExpression $expression )
walkParameter ( ParameterExpression $expression )
walkStaticField ( StaticFieldExpression $expression )
walkStaticMethodCall ( StaticMethodCallExpression $expression )

Private Methods

Method Description
normalScopeClass ( $class )
resolveMagicConstantValue ( $name )
resolveMagicScopeClass ( $class )
resolveMagicScopeClassConstant ( $class )
resolveMagicScopeExpression ( StaticClassExpression $expression )

Method Details

__construct() public method

public __construct ( Pinq\Parsing\IFunctionMagic $functionMagic )
$functionMagic Pinq\Parsing\IFunctionMagic

resolve() public static method

Resolves any magic constants / scopes with the supplied resolved values.
public static resolve ( Pinq\Parsing\IFunctionMagic $functionMagic, array $expressions ) : Expression[]
$functionMagic Pinq\Parsing\IFunctionMagic
$expressions array
return Pinq\Expressions\Expression[]

walkClassConstant() public method

public walkClassConstant ( ClassConstantExpression $expression )
$expression Pinq\Expressions\ClassConstantExpression

walkClosure() public method

public walkClosure ( ClosureExpression $expression )
$expression Pinq\Expressions\ClosureExpression

walkConstant() public method

public walkConstant ( ConstantExpression $expression )
$expression Pinq\Expressions\ConstantExpression

walkParameter() public method

public walkParameter ( ParameterExpression $expression )
$expression Pinq\Expressions\ParameterExpression

walkStaticField() public method

public walkStaticField ( StaticFieldExpression $expression )
$expression Pinq\Expressions\StaticFieldExpression

walkStaticMethodCall() public method

public walkStaticMethodCall ( StaticMethodCallExpression $expression )
$expression Pinq\Expressions\StaticMethodCallExpression