Closed
Description
Overview
To address the lack of support for pattern matching for methods names in ControlFlowPointcut
as discussed in #27187, we have decided to introduce such support in ControlFlowPointcut
analogous to the support already available in NameMatchMethodPointcut
.
Specifically, we intend to introduce a protected
method along the lines of NameMatchMethodPointcut#isMatch(String, String)
which by default delegates to PatternMatchUtils.simpleMatch(String, String)
.
That will likely cover the most common use cases for pattern matching; however, users will still be able to extend ControlFlowPointcut
and override isMatch(...)
in order to support different styles of pattern matching such as regular expressions.