[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] Combining call and execution pointcuts
|
- From: Marko Asplund <marko.asplund@xxxxxxxxxx>
- Date: Mon, 12 May 2008 14:58:49 +0300
- Delivered-to: aspectj-users@eclipse.org
- Domainkey-signature: a=rsa-sha1; s=mxtremes; d=ixonos.com; q=dns; c=nofws; h=Subject:From:To:In-Reply-To:References:Content-Type:Date:Message-ID:MIME-Version:X-Mailer:Content-Transfer-Encoding; b=bilpoNGfEGlQVeVTwYZNx3etZdKbcYRfgSts7Tl7jQ4iV7+EQJfrB5mlsOIOmjSvBUlfNsZjglSGC2jXEqNp7gmGw86E1lJ4bZCw6avl63ZkxGbH4uvYQhc7VWjKI4+qgL3d0+pn6fKRJFfQ9lleigs1n2mVKL9xxq/i5G/8ANw=;
Hi,
How can I pick out direct calls to a certain method from a particular
method?
For example how can I define a pointcut that picks out calls to a2()
from a1() in class A below?
I've tried the following pointcut definition but it doesn't seem to work
as expected:
ïaspect a {
pointcut a2CalledFromA1():
execution(void A.a1()) && call(void A.a2());
}
class A {
void a1() {
a2();
}
void a2() {
}
}