[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] setting local field joinpoints

What kind of refactoring is required to capture these?
thanks.

pope <alexandru.popescu@xxxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



[quote Irum Godil::on 1/25/2005 6:34 AM]
| Hi,
|
| Is there a way to capture a pointcut where a local field inside a method is being set. For
instance, if I have the following:
|
| public void aMethod() {
|
| int x = 2;
| ...
|
| }
|
| is there a way I can access the point where "x" is being set? It seems the pointcuts "get" and
"set" only work for instance variables.
|
| thanks.
|
|
| ---------------------------------
| Do you Yahoo!?
| Yahoo! Mail - Helps protect you from nasty viruses.

Local variable assignments are not exposed directly to pointcuts. However with a little refactoring
you will be able to *capture* those too.

- --
:pope
[the_mindstorm]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFB9fE2TTDTje0R2dgRAhavAKCIYVO/R8XIaPKqMxV0oIpMG9vh3QCghxEn
K+1/j8fX96/AzCn6aKuIYuk=
=R4Z3
-----END PGP SIGNATURE-----
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users


Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'