public abstract class DynamicFinder extends AbstractPatternBasedMethod implements MethodCandidate
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPERATOR_AND |
static java.lang.String |
OPERATOR_OR |
static java.lang.String[] |
OPERATORS |
pattern
DEFAULT_POSITION
Modifier | Constructor and Description |
---|---|
protected |
DynamicFinder(java.util.regex.Pattern pattern,
java.lang.String[] operators)
A custom finder and pattern.
|
protected |
DynamicFinder(java.lang.String... prefixes)
The prefixes to use.
|
Modifier and Type | Method and Description |
---|---|
MethodMatchInfo |
buildMatchInfo(MethodMatchContext matchContext)
Builds the method info.
|
boolean |
isMethodMatch(io.micronaut.inject.ast.MethodElement methodElement,
MatchContext matchContext)
Checks whether the given method is a match.
|
applyForUpdate, applyJoinSpecs, applyOrderBy, buildInfo, getInterceptorElement, getInterceptorElement, getOperationType, joinSpecsAtMatchContext, matchForUpdate, matchOrder, matchProjections
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrder
public static final java.lang.String OPERATOR_OR
public static final java.lang.String OPERATOR_AND
public static final java.lang.String[] OPERATORS
protected DynamicFinder(java.lang.String... prefixes)
prefixes
- The prefixesprotected DynamicFinder(java.util.regex.Pattern pattern, java.lang.String[] operators)
pattern
- The pattern.operators
- The operators to supportpublic boolean isMethodMatch(@NonNull io.micronaut.inject.ast.MethodElement methodElement, @NonNull MatchContext matchContext)
isMethodMatch
in interface MethodCandidate
isMethodMatch
in class AbstractPatternBasedMethod
methodElement
- The method elementmatchContext
- public MethodMatchInfo buildMatchInfo(@NonNull MethodMatchContext matchContext)
MethodCandidate
MethodCandidate.isMethodMatch(MethodElement, MatchContext)
should be
invoked and checked prior to calling this method.buildMatchInfo
in interface MethodCandidate
matchContext
- The match contextMethodMatchContext