How about

((CodeSignature)thisJoinPoint.getSignature()).getParameterTypes()?

-Ramnivas

On Mon, Mar 24, 2008 at 1:59 PM, joss <[EMAIL PROTECTED]>
wrote:

> Hi all,
>
> Do you know whether it is possible to recuperate the types of around's
> formal parameters in its own body or not ?
>
> example :
>
> long around(int x) {
> Object[] objs = thisJoinPoint.getArgs();
> Class<?>[] types = new Class<?>[objs.length];
>
> for(int i=0; i<objs.length; ++i)
>    types[i] = objsi[i].getClass(); // works only for the Class and not
> for the primitive types (like int here)
> }
>
> Thanks in advance.
>
> Jonathan Clairembault
>
>
> _______________________________________________
> 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