intersection method

ComposablePointcut intersection(
  1. AopPointcut other
)

From now on, matches only what other matches too; returns this pointcut.

Implementation

ComposablePointcut intersection(AopPointcut other) {
  final current = _matches;
  _matches = (s, name, aliases, introduced) =>
      current(s, name, aliases, introduced) &&
      pointcutMatchesBean(
        other,
        s,
        name,
        aliases,
        introducedTypes: introduced,
      );
  return this;
}