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
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 inherited from interface io.micronaut.data.processor.visitors.finders.MethodMatcher
DEFAULT_POSITION
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractPatternMethodMatcher
(boolean supportsProjections, @NonNull String... prefixes) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionmatch
(MethodMatchContext matchContext) protected abstract MethodMatcher.MethodMatch
match
(MethodMatchContext matchContext, 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
-
Field Details
-
patternWithBySyntax
-
patternWithoutBySyntax
-
-
Constructor Details
-
AbstractPatternMethodMatcher
protected AbstractPatternMethodMatcher(boolean supportsProjections, @NonNull @NonNull String... prefixes) Default constructor.- Parameters:
supportsProjections
- true of matcher supports projectionsprefixes
- The prefixes
-
-
Method Details
-
match
- Specified by:
match
in interfaceMethodMatcher
-
match
protected abstract MethodMatcher.MethodMatch match(MethodMatchContext matchContext, Matcher matcher) Handle match.- Parameters:
matchContext
- The match contextmatcher
- The matcher- Returns:
- The method match
-