[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[aspectj-users] Getting argument *types* from a JoinPoint
- From: "Anthony N. Frasso" <afrasso@xxxxxxxxx>
- Date: Thu, 4 Oct 2007 11:30:03 -0700 (PDT)
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=msqYU/9mIHA+0peIZDTJPv+G/wBGpfVls9kIp9WSzaemUtfMvtAmb6wzFN8sznhNgtMOKigc5nBDwp0fMLCTsfTy3uFJlPzZ/6n1t5DJtLUyVQou+2KbW/qI5rMZfflMPjruJtnOj6dDKxUzDv99wed3laJCUue27wk0CLEOAtg=;
Hello, and thanks for your help in advance.
I'm using AspectJ to add a tracing module to my software. Because I suppose
I'm a bit persnickety, the default method signature, nor the short or long
forms, suit what I'm trying to do.
I'd like to print trace messages in the following form:
<class-name>.<method-name>(<arg1-type>, <arg2-type>, ...)
Is there any way to get the argument types as they are defined in the method
signature from the JoinPoint? The only thing I've been able to do so far is
get the arguments themselves, and get the arguments' classes, but that will get
me the actual implementing class, not necessarily the type as defined in the
method signature. Also, this doesn't work to well if one of the arguments is
Any thoughts on how to accomplish this?
Thanks again for your help,
Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!