org.as2lib.core.BasicClass +--org.as2lib.aop.pointcut.WithinPointcut
Pointcut
WithinPointcut
captures join points based one their lexical-structure, that
means on the scope of the code as it was written. This within-pointcut allows for
capturing join points inside the lexical scope of classes and interfaces.
public function WithinPointcut(typePattern:String)
Constructs a new WithinPointcut
instance.
A typePattern
is for example:
org.as2lib..*Aspect
The above pattern matches all join points within all types in the "org.as2lib" package and any sub-package that have a name that ends with "Aspect".
typePattern | the type pattern describing the lexical scope of join points to capture |
public function captures(joinPoint:JoinPoint):Boolean
Checks if the given joinPoint
is captured by this pointcut.
false
will be returned if:
joinPoint
is null
or undefined
. joinPoint
does not match the given type pattern.joinPoint | the join point upon which to make the check |
true
if the given joinPoint
is captured by this pointcut
else false