org.aspectj/tests/java5/covariance/CovAspect08.aj

17 lines
424 B
Plaintext

aspect CovAspect08 {
pointcut p1(): call(FastCar getCar());
before(): p1() {
System.out.println("[call(FastCar getCar()) matched on '"+thisJoinPoint+":"+thisJoinPoint.getSourceLocation()+"']");
}
pointcut p2(): call(FastCar Sub.getCar());
before(): p2() {
System.out.println("[call(FastCar Sub.getCar()) matched on '"+thisJoinPoint+":"+thisJoinPoint.getSourceLocation()+"']");
}
}