Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] matching all functions declared in a certain interface

execution(void Interface1+.*(..));

Andy

On 15 January 2012 00:14, Dénes Németh <mr.nemeth.denes@xxxxxxxxx> wrote:
> Hi
>
> How is it possible to match all functions declared in a certain interface
> without specifying them one by one.
> Logically the following would be on, but AspectJ reports syntax error.
> (because IdPattern can not contain +), but I assume that this is
> possible somehow.
>
> pointcut p1() : execution (void Interface1+(..));
>
> public interface Interface1 {
>   public void func();
>   //let's assume that we have a  lot of functions here
> }
>
> classs Simple1 implements Interface1 {
>   public void func(){
>      System.out.println("test");
>   }
> }
>
> Thanks, Denes
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top