Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] binding arbitrary args

Title: Message
You can access all the arguments using thisJoinPoint.getArgs() which returns Object[] containing all arguments to the selected join point (with each argument appropriately boxed).

-Ramnivas
===
Ramnivas Laddad,
Author, AspectJ in Action
http://ramnivas.com
M: (408)203-4621


Oleg Lebedev wrote:
Greetings.
 
Is it possible to declare a pointcut, which targets any method in a class with any kind of arguments and then lists all the passed in parameters? What I am trying to do is to to print out all the parameters passed in to any method in a class independent of the method signature. So, it would be nice if I could bind an advice parameter, say a Vector, to all the parameters passed in to the method.
 
Any help would be greatly appreciated.
 
Regards.
 
Alec

_______________________________________________ aspectj-dev mailing list aspectj-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/aspectj-dev

Back to the top