[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Argument selector survey
|
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