Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Accessing parameter names in advice
Accessing parameter names in advice [message #587231] Mon, 07 March 2005 10:59
Eclipse UserFriend
Originally posted by: simon.heinzle.adnovum.ch

I'm currently writing an Enter/Leave tracing aspect for Debugging. The
output of it should be somewhat like "Entering method m_name(p_name =
p_value,...)".

Is there a way of getting the names(identifiers) of the parameters in an
advice generic?

With thisJoinPoint only the parameter values and their types can be
queried. A solution like


before (String target, int count) :
execution(* *.calculateValue(String, int))
&& args(target, count)
{
// Output: "Entering method calculateValue(target="+target
",
count" + count);
Previous Topic:Eclipse 3.1M5 and status of AJDT 1.2.0M3
Next Topic:Accessing parameter names in advice
Goto Forum:
  


Current Time: Thu Apr 25 22:32:01 GMT 2024

Powered by FUDForum. Page generated in 0.02746 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top