PHP Class Neos\Flow\Aop\Pointcut\PointcutMethodNameFilter

Inheritance: implements Neos\Flow\Aop\Pointcut\PointcutFilterInterface
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$methodArgumentConstraints Array with constraints for method arguments
$methodNameFilterExpression The method name filter expression
$methodVisibility The method visibility
$reflectionService Neos\Flow\Reflection\ReflectionService
$systemLogger Neos\Flow\Log\SystemLoggerInterface

Méthodes publiques

Méthode Description
__construct ( string $methodNameFilterExpression, string $methodVisibility = null, array $methodArgumentConstraints = [] ) Constructor - initializes the filter with the name filter pattern
getMethodArgumentConstraints ( ) : array Returns the method argument constraints
getMethodNameFilterExpression ( ) : string Returns the method name filter expression
getMethodVisibility ( ) : string Returns the method visibility
getRuntimeEvaluationsDefinition ( ) : array Returns runtime evaluations for a previously matched pointcut
hasRuntimeEvaluationsDefinition ( ) : boolean Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
injectReflectionService ( ReflectionService $reflectionService ) : void Injects the reflection service
injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean Checks if the specified method matches against the method name expression.
reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex This method is used to optimize the matching process.

Method Details

__construct() public méthode

Constructor - initializes the filter with the name filter pattern
public __construct ( string $methodNameFilterExpression, string $methodVisibility = null, array $methodArgumentConstraints = [] )
$methodNameFilterExpression string A regular expression which filters method names
$methodVisibility string The method visibility modifier (public, protected or private). Specifiy NULL if you don't care.
$methodArgumentConstraints array array of method constraints

getMethodArgumentConstraints() public méthode

Returns the method argument constraints
public getMethodArgumentConstraints ( ) : array
Résultat array

getMethodNameFilterExpression() public méthode

Returns the method name filter expression

getMethodVisibility() public méthode

Returns the method visibility
public getMethodVisibility ( ) : string
Résultat string

getRuntimeEvaluationsDefinition() public méthode

Returns runtime evaluations for a previously matched pointcut
public getRuntimeEvaluationsDefinition ( ) : array
Résultat array Runtime evaluations

hasRuntimeEvaluationsDefinition() public méthode

Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
public hasRuntimeEvaluationsDefinition ( ) : boolean
Résultat boolean TRUE if this filter has runtime evaluations

injectReflectionService() public méthode

Injects the reflection service
public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService The reflection service
Résultat void

injectSystemLogger() public méthode

public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
$systemLogger Neos\Flow\Log\SystemLoggerInterface
Résultat void

matches() public méthode

Returns TRUE if method name, visibility and arguments constraints match and the target method is not final.
public matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean
$className string Ignored in this pointcut filter
$methodName string Name of the method to match against
$methodDeclaringClassName string Name of the class the method was originally declared in
$pointcutQueryIdentifier mixed Some identifier for this query - must at least differ from a previous identifier. Used for circular reference detection.
Résultat boolean TRUE if the class matches, otherwise FALSE

reduceTargetClassNames() public méthode

This method is used to optimize the matching process.
public reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex
$classNameIndex neos\flow\aop\builder\ClassNameIndex
Résultat neos\flow\aop\builder\ClassNameIndex

Property Details

$methodArgumentConstraints protected_oe property

Array with constraints for method arguments
protected $methodArgumentConstraints

$methodNameFilterExpression protected_oe property

The method name filter expression
protected $methodNameFilterExpression

$methodVisibility protected_oe property

The method visibility
protected $methodVisibility

$reflectionService protected_oe property

protected ReflectionService,Neos\Flow\Reflection $reflectionService
Résultat Neos\Flow\Reflection\ReflectionService

$systemLogger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Résultat Neos\Flow\Log\SystemLoggerInterface