Hi,
I have recently started exploring abc and would like to know if it
supports Generics.
For example can I write a pointcut and apply the "before" advice to it
to insert a call
to another method depending on the type of the argument passed to the
pointcut?
Something like...
before(MyClass mc, <T> type) : call(* MyClass.add*(<T>))
&& args(type)
&& target(mc) {
mc.start(type);
}
Depending upon the type <T>, appropriate overloaded method for
"MyClass.start" will be called.
If this is not supported then is it possible to extend abc to support this?
Thanks,
----- Saurabh
Received on Tue Apr 21 2009 - 03:22:42 BST
This archive was generated by hypermail 2.2.0 : Tue Apr 21 2009 - 04:10:14 BST