Class org.as2lib.aop.pointcut.NotPointcut

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

Implemented Interfaces

Pointcut

Description

NotPointcut acts like the logical not "!" operator. It wraps a pointcut and negates the result of its captures method.

Method Index

new NotPointcut()

captures()

Inherited from BasicClass

toString()

Constructor Detail

NotPointcut

public function NotPointcut(pointcut:Pointcut)

Constructs a new NotPointcut instance.

Parameters

pointcutthe pointcut whose captures method to negate

Method Detail

captures

public function captures(joinPoint:JoinPoint):Boolean

Executes the wrapped pointcut's captures method passing the given joinPoint, negates the result and returns the negation.

If the wrapped pointcut specified on construction is null or undefined, false will be returned.

Parameters

joinPointthe join point to check whether it is captured

Return

the negated result of the execution of the captures method of the wrapped pointcut

Specified By

captures() in org.as2lib.aop.Pointcut