Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] capturing a tricky joinpoint


Eric,
        In that case can you please point me to some links to stateful aspects?
thanks
Harikishore


Please respond to aspectj-users@xxxxxxxxxxx

Sent by:        aspectj-users-bounces@xxxxxxxxxxx

To:        aspectj-users@xxxxxxxxxxx


Subject:         RE: [aspectj-users] capturing a tricky joinpoint  

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

You cannot do this with a single pointcut in AspectJ. As mentioned in
earlier postings, you need a stateful aspect for this. Or you could
use the so-called "tracematches" - a language extension, which is
coming up in the abc compiler:
http://abc.comlab.ox.ac.uk/techreports#abc-2005-1

Eric

- --
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University



________________________________

From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of
harikishore.tadigotla@xxxxxxxxxxx
Sent: Freitag, 1. April 2005 20:31
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] capturing a tricky joinpoint



public class myclass
{
       public void mymethod()
       {
               ..
               veryimpmethod1(..);
               ..
               veryimpmethod2(..);
       }
}

I want to write a pointcut which means "any method execution in whose
control flow there is a call to method veryimpmethod2() if there is a
call to veryimpmethod1()". Is this possible?
Basically I want to know if anywhere in my code(all of my code base)
I have called first function veryimpmethod1() but not
veryimpmethod2(). Any help is appreciated.
thanks and regards,
Harikishore T.




________________________________

**********************************************************************
**
This E-mail is confidential. It may also be legally privileged. If
you
are not the addressee you may not copy, forward, disclose or use any
part of it. If you have received this message in error, please delete
it and all copies from your system and notify the sender immediately
by return E-mail.

Internet communications cannot be guaranteed to be timely, secure,
error or virus-free. The sender does not accept liability for any
errors or omissions.
******************
******************************************************


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQk6PWMwiFCm7RlWCEQLddACgkr0rH512H7v5jdfANxpxERubH7IAnjDV
oSQXWatJQsPgrWeibK9jx9rB
=514a
-----END PGP SIGNATURE-----


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



************************************************************************
This E-mail is confidential. It may also be legally privileged. If you
are not the addressee you may not copy, forward, disclose or use any
part of it. If you have received this message in error, please delete
it and all copies from your system and notify the sender immediately
by return E-mail.

Internet communications cannot be guaranteed to be timely, secure,
error or virus-free. The sender does not accept liability for any
errors or omissions.
****************** ******************************************************


Back to the top