[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] How to retrieve a parent argument.
|
- From: Laurent Burgy <burgy@xxxxxxxxxx>
- Date: Thu, 03 Nov 2005 17:11:49 +0100
- Delivered-to: aspectj-users@eclipse.org
- User-agent: Mozilla Thunderbird 1.0.7 (X11/20051011)
Hi all,
maybe it's really simple but i didn't know how to do...
if i have:
public void m1( int foo ) {
m2();
m3();
}
If i want to do something around m2 considering the value of foo, how
may i do it?
public void m1( int foo) {
if( foo < 42 )
titi.m2();
else
toto.m4();
tutu.m3();
}
How can i retrieve the value of foo or a reference to it ?
In the same time, how can I retrieve a reference to the current object (
the one to which "this" refers in the m1 method ) ?
Regards,
PS: Sorry for my english