Class PerThisOrTargetPointcutVisitor

java.lang.Object
org.aspectj.weaver.patterns.AbstractPatternNodeVisitor
org.aspectj.weaver.patterns.PerThisOrTargetPointcutVisitor
All Implemented Interfaces:
PatternNodeVisitor

public class PerThisOrTargetPointcutVisitor extends AbstractPatternNodeVisitor
A visitor that turns a pointcut into a type pattern equivalent for a perthis or pertarget matching: - pertarget(target(Foo)) → Foo+ (this one is a special case..) - pertarget(execution(* Foo.do()) → Foo - perthis(call(* Foo.do()) → * - perthis(!call(* Foo.do()) → * (see how the ! has been absorbed here..)
Author:
Alexandre Vasseur (alex AT gnilux DOT com)