Skip to main content

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

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

[quote Irum Godil::on 1/25/2005 4:30 PM]
| What kind of refactoring is required to capture these?
| thanks.
|
| pope <alexandru.popescu@xxxxxxxxx> wrote:
|

You should ask before of any refactorings, why are you needing to use some method local variables.
If the answer is consistent, you can use extract method for the local variables assignments and so
you have a joinpoint to match upon.

- --
:pope
[the_mindstorm]

|
| [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]
_______________________________________________
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'

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFB9lv9TTDTje0R2dgRAjXcAJ0VyIaPqvtGMfnNig26kIt2NjQ7qwCePI+t
02jBN7i6l/3JNIXmcRcFq2k=
=4dgm
-----END PGP SIGNATURE-----


Back to the top