Class org.as2lib.aop.pointcut.WithinPointcut

org.as2lib.core.BasicClass
   +--org.as2lib.aop.pointcut.WithinPointcut

Implemented Interfaces

Pointcut

Description

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.

Method Index

new WithinPointcut()

captures()

Inherited from BasicClass

toString()

Constructor Detail

WithinPointcut

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".

Parameters

typePatternthe type pattern describing the lexical scope of join points to capture

Method Detail

captures

public function captures(joinPoint:JoinPoint):Boolean

Checks if the given joinPoint is captured by this pointcut.

false will be returned if:

  • The passed-in joinPoint is null or undefined.
  • The passed-in joinPoint does not match the given type pattern.

Parameters

joinPointthe join point upon which to make the check

Return

true if the given joinPoint is captured by this pointcut else false

Specified By

captures() in org.as2lib.aop.Pointcut