package object_annotation.test; import be.ac.vub.object_annotations.*; public aspect TheNanny { pointcut kids(Object o, Adult a) : execution(@Naugthy * *(..)) && target(o) && @target(a) && if(!AnnotationManager.isActive(o,a)); Object around(Object o, Adult a) : kids(o,a) { System.out.println("I said NO! to "+thisJoinPoint.toShortString()); return null; } }