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

parentheses attach the annotation to the return value type pattern.

Andy

On 21 May 2010 01:01, Davide <[email protected]> wrote:
> 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
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to