Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Matching based on method parameter value

call(* *..*.*(String))

--
Dehua Zhang
Sable Research Group, McGill University
Montréal, Québec, Canada
http://www.cs.mcgill.ca/~dzhang25





-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx on behalf of Ed
Sent: Mon 3/31/2008 20:40
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] Matching based on method parameter value
 
Hi,

  Is it possible to define a pointcut that matches based on the parameter
passed to the method?

e.g.

I would like to match this:

System.out.prinlnt("Constant String");
or even
String foo = "Constant String";
System.out.prinln(foo);

More specifically, if the string is dynamically created, I don't care to
instrument it.

Thanks!
-Ed



Back to the top