Using:

@AfterReturning(pointcut = "execution(@Contract * *(..))", returning = "newval")

will match all methods that have annotation Contract.

@Contract
T method1(...)

But I like to match all methods which return type class has an
annotation of type Contract

@Contract
class T
{
}

T method1(...)

it is possible this?


-- 
  _|  _.    o  _|  _
 (_| (_| \/ | (_| (/_
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to