Ejemplo n.º 1
0
 public Object visit(ASTPointcut node, Object data) {
   if (manager == null) {
     setAllTrue();
   }
   Pointcut p = manager.getPointcut(node.getPointcutName());
   if (p instanceof PointcutExpression) {
     PointcutExpression expr = (PointcutExpression) p;
     PointcutStats stats = expr.getStats();
     if (stats != null) {
       execution |= stats.isExecution();
       methodExecution |= stats.isMethodExecution();
       constructorExecution |= stats.isConstructorExecution();
       call |= stats.isCall();
       methodCall |= stats.isMethodCall();
       constructorCall |= stats.isConstructorCall();
       within |= stats.isWithin();
       get |= stats.isGet();
       set |= stats.isSet();
       withincode |= stats.isWithincode();
     } else {
       setAllTrue();
     }
   } else {
     setAllTrue();
   }
   return Boolean.FALSE;
 }