c*****t 发帖数: 1879 | 1 Basically, I wanted to do the following, right after
out.setActivity (state.getActivity ());
I wanted to add another piece of code
out.setCount (state.getCount ());
How to write the aspect code? I tried the following and didn't work.
Any suggestions?
aspect X
{
after (Out out, State state):
(cflowbelow (call (int State.getActivityType ()) && target (state)))
&&
(call (void Out.setActivityType (int)) && target (out))
{
out.setCount (state.getCount ());
System.out.println ("......");
}
}
Thanks |
|