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.
|
protected boolean |
hasQueryAnnotation(io.micronaut.inject.ast.MethodElement methodElement)
Method that checks for the presence of the query annotation.
|
boolean |
isMethodMatch(io.micronaut.inject.ast.MethodElement methodElement,
MatchContext matchContext)
Checks whether the given method is a match.
|
applyJoinSpecs, applyOrderBy, buildInfo, buildRawQuery, getInterceptorElement, getInterceptorElement, getOperationType, 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
- protected boolean hasQueryAnnotation(@NonNull io.micronaut.inject.ast.MethodElement methodElement)
methodElement
- The method elementpublic 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