[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] exclude some originating objects?
|
Thanks Adrian,
Can you please explain what you mean by 'call site is not lexically within
B'?
Ted
----- Original Message -----
From: "Adrian Colyer" <adrian.colyer@xxxxxxxxx>
To: <aspectj-users@xxxxxxxxxxx>
Sent: Saturday, July 23, 2005 5:12 AM
Subject: Re: [aspectj-users] exclude some originating objects?
On 23/07/05, Ted Anagnost <anagnost@xxxxxxxxxxx> wrote:
Is it possible to define a pointcut such that it picks out calls to
methods
of one class (A) unless those calls are made from some class (B)?
/**
* this pointcut matches calls to an instance of A not made from an
instance of B
*/
pointcut callsToANotMadeFromB() : call(* *(..)) && target(A) && !this(B);
/**
* this pointcut matches calls to methods defined for A, where the call site
is
* not lexically within B.
*/
pointcut callsToANotMadeFromBv2() : call(* A.*(..)) && !within(B);
-- Adrian
adrian.colyer@xxxxxxxxx
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users