Class AbstractPatternMethodMatcher
- java.lang.Object
-
- io.micronaut.data.processor.visitors.finders.AbstractPatternMethodMatcher
-
- All Implemented Interfaces:
io.micronaut.core.order.Ordered,MethodMatcher
- Direct Known Subclasses:
CountMethodMatcher,DeleteMethodMatcher,ExistsMethodMatcher,FindMethodMatcher,ListMethodMatcher,UpdateMethodMatcher
public abstract class AbstractPatternMethodMatcher extends java.lang.Object implements MethodMatcher
Abstract pattern method match that support two variations of method names. - With `by` syntax - projection followed by predicates - Without `by` syntax - predicates only- Since:
- 3.2
- Author:
- Denis Stepanov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micronaut.data.processor.visitors.finders.MethodMatcher
MethodMatcher.MethodMatch
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.regex.PatternpatternWithBySyntaxprotected java.util.regex.PatternpatternWithoutBySyntax-
Fields inherited from interface io.micronaut.data.processor.visitors.finders.MethodMatcher
DEFAULT_POSITION
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPatternMethodMatcher(boolean supportsProjections, java.lang.String... prefixes)Default constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MethodMatcher.MethodMatchmatch(MethodMatchContext matchContext)protected abstract MethodMatcher.MethodMatchmatch(MethodMatchContext matchContext, java.util.regex.Matcher matcher)Handle match.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micronaut.data.processor.visitors.finders.MethodMatcher
getOrder
-
-
-
-
Method Detail
-
match
public final MethodMatcher.MethodMatch match(MethodMatchContext matchContext)
- Specified by:
matchin interfaceMethodMatcher
-
match
protected abstract MethodMatcher.MethodMatch match(MethodMatchContext matchContext, java.util.regex.Matcher matcher)
Handle match.- Parameters:
matchContext- The match contextmatcher- The matcher- Returns:
- The method match
-
-