Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Can we access any static join point information in declare error/warning?

Very very nice!!!

Simone

2010/3/13 Andy Clement <andrew.clement@xxxxxxxxx>
This idea of mirroring the API usage is mentioned in bug 48080 (see
the first comment by Jim).  I have just committed the following
support:

 declare warning: execution(* A.m(..)): "joinpoint location is
{joinpoint.sourcelocation.sourcefile}:{joinpoint.sourcelocation.line}";
 declare warning: execution(* A.m(..)): "joinpoint is {joinpoint}";
 declare warning: execution(* A.m(..)): "joinpoint kind is '{joinpoint.kind}'";
 declare warning: execution(* A.m(..)): "joinpoint line is
'{joinpoint.sourcelocation.line}'";
 declare warning: get(int *) && within(A): "joinpoint signature is
{joinpoint.signature}";
 declare warning: execution(* A.m(..)): "joinpoint declaring type is
{joinpoint.signature.declaringType}";
 declare warning: execution(* A.m(..)): "advice sourcelocation is
{advice.sourcelocation.sourcefile}:{advice.sourcelocation.line}";
 declare warning: get(int *): "aspect is {advice.aspecttype}";
 declare warning: get(int *): "signature name for field is
{joinpoint.signature.name}";
 declare warning: execution(* A.m(..)): "signature name for method is
{joinpoint.signature.name}";

Andy
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top