[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] thisJoinPointStaticPart
|
Hi -
this..JoinPoint.. reflective variables are only valid in the body of advice,
as discussed here:
http://www.eclipse.org/aspectj/doc/released/progguide/semantics-advice.html#reflective-access-to-the-join-point
thisJoinPoint{StaticPart} refers to the join point being advised,
and thisEnclosingJoinPointStaticPart refers to the join point enclosing the current
one, if known. They are of type JoinPoint or JoinPoint.StaticPart.
Does that help? - wes
------------Original Message------------
From: "Conway. Fintan (IT Solutions)" <Fintan.Conway@xxxxxx>
To: aspectj-users@xxxxxxxxxxx
Date: Tue, Aug-15-2006 1:43 AM
Subject: [aspectj-users] thisJoinPointStaticPart
Hi *,
I am trying to retrieve the method which is firing an advice. I am trying to use 'thisJoinPointStaticPart.toString()'.
When I type thisJoinPointStaticPart into Eclipse it shows up in bold and purple - so far so good. However when I save the aspect file, Eclipse gives me the error - "
thisJoinPointStaticPart cannot be resolved" . I have imported org.aspectj.lang.*;
I am using Eclipse 3.2 and AJDT 1.4.
Any advice (pun intended) is appreciated,
Regards,
Fintan
PS same problem for thisJoinPoint.