PHP 클래스 Neos\Flow\Aop\Pointcut\PointcutMethodNameFilter

상속: implements Neos\Flow\Aop\Pointcut\PointcutFilterInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

Returns the method argument constraints

getMethodNameFilterExpression() 공개 메소드

Returns the method name filter expression

getMethodVisibility() 공개 메소드

Returns the method visibility
public getMethodVisibility ( ) : string
리턴 string

getRuntimeEvaluationsDefinition() 공개 메소드

Returns runtime evaluations for a previously matched pointcut
public getRuntimeEvaluationsDefinition ( ) : array
리턴 array Runtime evaluations

hasRuntimeEvaluationsDefinition() 공개 메소드

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

injectReflectionService() 공개 메소드

Injects the reflection service
public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService The reflection service
리턴 void

injectSystemLogger() 공개 메소드

public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
$systemLogger Neos\Flow\Log\SystemLoggerInterface
리턴 void

matches() 공개 메소드

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.
리턴 boolean TRUE if the class matches, otherwise FALSE

reduceTargetClassNames() 공개 메소드

This method is used to optimize the matching process.
public reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex
$classNameIndex Neos\Flow\Aop\Builder\ClassNameIndex
리턴 Neos\Flow\Aop\Builder\ClassNameIndex

프로퍼티 상세

$methodArgumentConstraints 보호되어 있는 프로퍼티

Array with constraints for method arguments
protected $methodArgumentConstraints

$methodNameFilterExpression 보호되어 있는 프로퍼티

The method name filter expression
protected $methodNameFilterExpression

$methodVisibility 보호되어 있는 프로퍼티

The method visibility
protected $methodVisibility

$reflectionService 보호되어 있는 프로퍼티

protected ReflectionService,Neos\Flow\Reflection $reflectionService
리턴 Neos\Flow\Reflection\ReflectionService

$systemLogger 보호되어 있는 프로퍼티

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
리턴 Neos\Flow\Log\SystemLoggerInterface