Skip to main content

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

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


Back to the top