Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Accessing parameter names in advice
Accessing parameter names in advice [message #587246] Mon, 07 March 2005 06:01
Eclipse User
Originally posted by: simon.heinzle.adnovum.ch

SORRY about the post before, something went wrong....

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 ...
}


is too bulky.
Previous Topic:Accessing parameter names in advice
Next Topic:Not seeing declare warning matches in outline view
Goto Forum:
  


Current Time: Fri Aug 29 01:25:41 EDT 2014

Powered by FUDForum. Page generated in 0.02412 seconds