Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Accessing value of annotation on method parameter

Hi Andy,

thank you very much, this seems to be exactly what i wanted.

Have a great day,
Luke


Andy Clement wrote:
> 
> Hi Luke,
> 
> This is enhancement
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=259416 - currently you
> cannot do it directly in the syntax, you need to dig them out of the
> thisJoinPoint object.
> 
> MethodSignature ms =
> (MethodSignature)thisJoinPointStaticPart.getSignature();
> System.out.println(ms.getMethod().getParameterAnnotations()[0][0]);
> 
> when it is supported, likely syntax is:
> 
> before(SomeAnno anno): execution(* someMethod(..)) && @args(anno (*)) {}
> 
> cheers,
> Andy
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 


--
View this message in context: http://aspectj.2085585.n4.nabble.com/Accessing-value-of-annotation-on-method-parameter-tp4042771p4079120.html
Sent from the AspectJ - users mailing list archive at Nabble.com.


Back to the top