public abstract class AbstractPatternMethodMatcher extends java.lang.Object implements MethodMatcher
MethodMatcher.MethodMatch
Modifier and Type | Field and Description |
---|---|
protected java.util.regex.Pattern |
patternWithBySyntax |
protected java.util.regex.Pattern |
patternWithoutBySyntax |
DEFAULT_POSITION
Modifier | Constructor and Description |
---|---|
protected |
AbstractPatternMethodMatcher(boolean supportsProjections,
java.lang.String... prefixes)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
MethodMatcher.MethodMatch |
match(MethodMatchContext matchContext) |
protected abstract MethodMatcher.MethodMatch |
match(MethodMatchContext matchContext,
java.util.regex.Matcher matcher)
Handle match.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrder
protected final java.util.regex.Pattern patternWithBySyntax
protected final java.util.regex.Pattern patternWithoutBySyntax
protected AbstractPatternMethodMatcher(boolean supportsProjections, @NonNull java.lang.String... prefixes)
supportsProjections
- true of matcher supports projectionsprefixes
- The prefixespublic final MethodMatcher.MethodMatch match(MethodMatchContext matchContext)
match
in interface MethodMatcher
protected abstract MethodMatcher.MethodMatch match(MethodMatchContext matchContext, java.util.regex.Matcher matcher)
matchContext
- The match contextmatcher
- The matcher