import java.util.*; public aspect ParameterizedMethodMatching { pointcut findMax() : execution(static T *(List)); // matches findMax // does not match e.g. Object foo(List foos) {...} pointcut findMax2() : execution(static X * List)); // matches findMax pointcut findMax3() : execution(static T+ *(List)); // CE pointcut listargs(): args(List); // always matches findMax pointcut listNumberargs() : args(List); // may match findMax (RTT) }