Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] about set pcd capabilities

No, you have to use reflection.


Eric


> -----Original Message-----
> From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-
> bounces@xxxxxxxxxxx] On Behalf Of ujuarez71@xxxxxxxxxxxx
> Sent: Monday, November 27, 2006 3:18 PM
> To: aspectj-users@xxxxxxxxxxx
> Subject: [aspectj-users] about set pcd capabilities
> 
> Hi.
> 
> Is there a way to know the previos value of a field when I apply a set
> pcd ??
> 
> Suppose I have the next piece of code:
> 
> 1.      double d;
> 2.      void m() {
> 3.          d = 5.5;
>             // a lot of code here
> 40.        d = Math.random();
> 41.        System.out.println(d);
> 42.    }
> 
> I can use 'set(double d)' to know the new value will be assigned to
'd'
> field. Can I know the OLD value of 'd' at line 40 ??
> 
> Is it possible to apply get/set pcd and advising field 'd' at line 1
??
> 
> 
> Best regards.
> 
> Uli.
> 
> ________________________________
> 
> Check Out the new free AIM(R) Mail
>
<http://pr.atwola.com/promoclk/100122638x1081283466x1074645346/aol?redi
> r=http%3A%2F%2Fwww%2Eaim%2Ecom%2Ffun%2Fmail%2F>  -- 2 GB of storage
and
> industry-leading spam and email virus protection.



Back to the top