Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] pointcut with parameters definition

Not directly, but you may create another pointcut and use the original from it:

pointcut myMethodCall2() : myMethodCall(*);

-Ramnivas

On Mon, Dec 8, 2008 at 10:16 AM, Marco Poggi <marco.poggi@xxxxxxxxx> wrote:
> Hi all,
> I need a little help
>
> I have to write a pointcut to capture something like
>
>
> * *.method(Strring,...) && args(a) && checkParameter(a)
>
> checkParameter is a method with this signature
>
> static boolean checkParameter(String a)
>
> I have tried with
>
> myMethodCall(String a):
> call(* *.method(String,..)) && args(a) && checkParameter(a);
>
> and It works, I want know if is possible to write the same pointcut without
> declare
>
> myMethodCall(String a)
>
> but only myMethodCall()
>
>
> Thank You all
>
> Marco Poggi
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


Back to the top