import org.aspectj.bridge.ISourceLocation;
import org.aspectj.bridge.MessageUtil;
import org.aspectj.bridge.SourceLocation;
+import org.aspectj.util.FuzzyBoolean;
import org.aspectj.util.PartialOrder;
import org.aspectj.weaver.patterns.PerClause;
import org.aspectj.weaver.patterns.Pointcut;
}
}
}
- return pointcut.match(shadow).maybeTrue();
+ if (world.areInfoMessagesEnabled() && world.isTimingEnabled()) {
+ long starttime = System.nanoTime();
+ FuzzyBoolean isMatch = pointcut.match(shadow);
+ long endtime = System.nanoTime();
+ world.record(pointcut, endtime - starttime);
+ return isMatch.maybeTrue();
+ } else {
+ FuzzyBoolean isMatch = pointcut.match(shadow);
+ return isMatch.maybeTrue();
+ }
}
public int fallbackCompareTo(Object other) {