Hey Marko, I have seen * used like this in the wild:
execution(* *(*,String,..)) the second argument is a string execution(* *(*,*,String,..)) the third argument is a string Are you considering annotations (parameter?) in your patterns? Those are also a common use case where the specific type is not listed, but an annotation pattern. cheers, Andy On 16 May 2014 08:32, ajUnit <ajunit.cont...@fail-early.com> wrote: > Hello, > > I'm developing a unit testing extension for AspectJ, called ajUnit > (https://github.com/loddar/ajunit). > > Currently I stuck with arguments selector. The argument selector in > aspectj is quiete powerful, but I guess not everthing is used in practise. > > For example "/execution(* *(*,..,int,*,boolean,..*))/" is valid argument > selector, but what's the use case?! > > So here come my questions: Which kind of argument selector have you been > used or you think there is a real use case for it? > > Some common examples: > > * execution(* *(.., int)) last argument is an int > * execution(* *(int,..)) first argument is an int > * execution(* *(.., MyClass,..)) at least one argument is of type > MyClass > * execution(* *(*)) has exactly one argument > * execution(* *()) has no arguments > * execution(* *(..)) has any number of arguments > > I'm not interested what kind of selection could be done to a single > argument. The more I'm interested which combination of .., * and > argument selector is of real use out there. If you have a uncommon case, > it would be nice if you explain it. > > Thx Marko > > -- > Visit ajUnit @ https://github.com/loddar/ajunit > > _______________________________________________ > aspectj-users mailing list > aspectj-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/aspectj-users >
_______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users