[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] pointcut wildcard question
|
Indeed that works. Any idea on where in the documentation this would be?
2006/4/12, Tim Kettler <tim.kettler@xxxxxxx>:
Hi,
I think you have to use:
pointcut getters() : execution( * MyInterface+.get*(..))
to match any number of arguments.
Hope this helps
-Tim
Wim Deblauwe schrieb:
> Hi,
>
> I notice some behaviour with pointcuts that I do not understand.
> Consider the following:
>
> pointcut getters() : execution( * MyInterface+.get*())
>
> -> This matches any method that starts with 'get' of any subclass of
> MyInterface and has no arguments.
>
> Then I change it to this:
>
> pointcut getters() : execution( * MyInterface+.get*(*))
>
> -> I thought that this would match the same methods as before, with
> additionaliy getters that take arguments. So the ones with no arguments
> and the ones with any number of arguments.
>
> However testing in Eclipse shows that the second form does NOT match the
> methods without arguments. Is this intentionally?
>
> regards,
>
> Wim
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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