CompositePointcut
AndPointcut combines multiple pointcuts with a logical AND. This means that
this pointcut captures a given join point if all its contained pointcuts capture the
given join point.
This pointcut expects a string representation as parameter on construction. Such
a string representation may look something like this:
execution(org.as2lib.env.Logger.*) && execution(org.as2lib.reflect.*.*)
new AndPointcut()public function AndPointcut(pointcut:String)
Constructs a new AndPointcut instance.
The string representation is supposed to be a combination of multiple
pointcuts where some of them are combined with the && operator.
pointcut | (optional) the string representation of this and pointcut |
public function captures(joinPoint:JoinPoint):Boolean
Checks whether this pointcut captures the given joinPoint. The
joinPoint is only captured if all sub-pointcuts of this pointcut capture
it.
false will be returned if:
joinPoint is null or undefined. captures method returns false.joinPoint | the join point to check whether it is captured by this pointcut |
true if this pointcut captures the given joinPoint else
false