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 11:01
Eclipse UserFriend
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: Sun Nov 23 06:01:10 GMT 2014

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

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