[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] Capturing data at a pointcut
|
- From: 100ji <itz100ji@xxxxxxxxx>
- Date: Wed, 22 Apr 2009 03:31:12 -0400
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=pIL4arj4dgV/OliUE9n+7jlTcMGqUBgZjYf1aA9gBko=; b=Y2t3XD2HtKP6pdBznhIgt4hVI5fwjFb40VVhN/jw06DBzxUKJn1m3zBLsTny4hyWuo yy5vnGNjEahV0MjIzi3+l4DJXl1KPA8bjUibU1Sqw8fDF7iL8c1EaYFno0ofUpdx1UA8 1iCbL2hgTMT7FcKpKOqunOjKy0VrOANOuk5yY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=oFlanDJH1aPExHPlqnlnRe4EcVJs/CzCN6W8kfAmcp6J5TYvtwD8Cfw+xoasCD5A8y uijVS83UbPkM0GVLrxYn+6z0kL/1ZuvQi2fQNgtyLxuByPyr57gCCKR4fcTTgEMqyyXz XmRTgcDwpKPHg9q4J2icTD3Bm2PVgqlEJ2PSo=
Hi all,
I am implementing some dynamic programming analysis using AspectJ. For
example, consider the program:
Set<Object> s = new HashSet<Object>();
s.add(o1);
s.remove(o1);
In this program at each add and remove method call, I need the
following information:
1) a string showing the type of s and a fully qualified name of the
field with the name of the field. "java.util.Set com.x.y.z.a.b.c.s".
2) a reference to object o1.
3) a reference to set s.
4) The lineno and the file name at which the call is taking place.
I can get (2), (3) and (4) using the argument, target and
thisJoinPoint.getStaticpart.getLineNo() respectively. How can I get
(1) the name of the field s and it's type from a point cut?
Thanks,
-S-