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

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

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


I would like to match this:

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

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


Back to the top