[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
RE: [aspectj-users] Get enclosing method signature of a join point
|
- From: jennie <jenniemai81@xxxxxxxxx>
- Date: Tue, 13 Mar 2007 16:26:44 -0700 (PDT)
- Delivered-to: aspectj-users@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=jXdTD5SouwpWX87JCIjD52UuA3+0GsR1FYTCJuUPqe5T0DTSTozf7Z55XpW6g29aKoLbLgMSTQyW0AWp5iG6tlBDPNmKlhfvRBdzJTKDvrPinRsnR40OSOYs+/t457ThsknBUI9jALUD3Uv+hZy4F3t2vi2S/lNkJQJA0KwHFVE=;
Hi Ron,
Thanks again for the quick reply. I think I used the
wrong terminology in the previous post -- I meant to
ask if this information is available when making the
Join Point, before the app is running?
Since enclosure is lexical, this information seems
attainable by the aspectj compiler/weaver. Do you
think the task of including enclosing method info is
very difficult? I can take a stab at the aspectJ code
and see if I can modify it , perhaps a modified output
of --showWeaveInfo to include more context. Is this
allowed under the aspectJ license?
--- Ron Bodkin <rbodkin@xxxxxxxxxxxxxx> wrote:
> Hi Jennie,
>
> You can get the static subset of information about
> the join point using
> thisEnclosingJoinPointStaticPart. That can be used
> to find the signature of
> the method. This will find join points like the
> execution that encloses a
> call join point. However, they won't report on an
> "enclosing" call join
> point for execution: the notion of enclosure is
> lexical, not dynamic.
>
> -----Original Message-----
> From: aspectj-users-bounces@xxxxxxxxxxx
> [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf
> Of jennie
> Sent: Tuesday, March 13, 2007 3:14 PM
> To: aspectj-users@xxxxxxxxxxx
> Subject: [aspectj-users] Get enclosing method
> signature of a join point
>
> Hi there,
>
> Is there way to get the enclosing method signature
> of
> a particular join point? For example, for
>
> class A{
>
> public void foo(){
> System.out.println("Testing");
> }
> }
>
> If there is a join point at the method call
> "System.out.println()", can I figure out that the
> enclosing method is foo() during weave time?
>
> Thanks in advance.
>
>
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
____________________________________________________________________________________
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097