Class AbstractPrefixPatternMethodMatcher
- java.lang.Object
-
- io.micronaut.data.processor.visitors.finders.AbstractPrefixPatternMethodMatcher
-
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,MethodMatcher
- Direct Known Subclasses:
AbstractSpecificationMethodMatcher
,SaveEntityMethodMatcher
,SaveOneMethodMatcher
public abstract class AbstractPrefixPatternMethodMatcher extends java.lang.Object implements MethodMatcher
The matcher based on a simple patter.- 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.Pattern
pattern
-
Fields inherited from interface io.micronaut.data.processor.visitors.finders.MethodMatcher
DEFAULT_POSITION
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPrefixPatternMethodMatcher(java.util.List<java.lang.String> prefixes)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MethodMatcher.MethodMatch
match(MethodMatchContext matchContext)
protected abstract MethodMatcher.MethodMatch
match(MethodMatchContext matchContext, java.util.regex.Matcher matcher)
Handle the 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 MethodMatcher.MethodMatch match(MethodMatchContext matchContext)
- Specified by:
match
in interfaceMethodMatcher
-
match
protected abstract MethodMatcher.MethodMatch match(MethodMatchContext matchContext, java.util.regex.Matcher matcher)
Handle the match.- Parameters:
matchContext
- The match contextmatcher
- The matcher- Returns:
- The method matcher
-
-