PointcutFilter
class PointcutFilter implements PointcutFilterInterface (View source)
A filter which refers to another pointcut.
Properties
protected string | $aspectClassName | Name of the aspect class where the pointcut was declared |
|
protected string | $pointcutMethodName | Name of the pointcut method |
|
protected Pointcut | $pointcut | The pointcut this filter is based on |
|
protected ProxyClassBuilder | $proxyClassBuilder | A reference to the AOP Proxy ClassBuilder |
Methods
The constructor - initializes the pointcut filter with the name of the pointcut we're referring to
Checks if the specified class and method matches with the pointcut
Returns true if this filter holds runtime evaluations for a previously matched pointcut
Returns runtime evaluations for the pointcut.
This method is used to optimize the matching process.
Details
__construct(string $aspectClassName, string $pointcutMethodName)
The constructor - initializes the pointcut filter with the name of the pointcut we're referring to
void
injectProxyClassBuilder(ProxyClassBuilder $proxyClassBuilder)
Injects the AOP Proxy Class Builder
bool
matches(string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier)
Checks if the specified class and method matches with the pointcut
bool
hasRuntimeEvaluationsDefinition()
Returns true if this filter holds runtime evaluations for a previously matched pointcut
array
getRuntimeEvaluationsDefinition()
Returns runtime evaluations for the pointcut.
ClassNameIndex
reduceTargetClassNames(ClassNameIndex $classNameIndex)
This method is used to optimize the matching process.