[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] How to retrieve a parent argument.

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