Class AbstractSpecificationMethodMatcher
java.lang.Object
io.micronaut.data.processor.visitors.finders.AbstractPrefixPatternMethodMatcher
io.micronaut.data.processor.visitors.finders.AbstractSpecificationMethodMatcher
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,MethodMatcher
- Direct Known Subclasses:
CountSpecificationMethodMatcher
,DeleteAllSpecificationMethodMatcher
,DeleteSpecificationMethodMatcher
,ExistsSpecificationMethodMatcher
,FindAllSpecificationMethodMatcher
,FindOneSpecificationMethodMatcher
,FindPageSpecificationMethodMatcher
,UpdateAllSpecificationMethodMatcher
Abstract superclass for specification methods.
- Since:
- 3.1
- 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 class io.micronaut.data.processor.visitors.finders.AbstractPrefixPatternMethodMatcher
pattern
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
ConstructorsModifierConstructorDescriptionprotected
AbstractSpecificationMethodMatcher
(String... prefixes) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final io.micronaut.inject.ast.ClassElement
getInterceptorElement
(MethodMatchContext matchContext, String interceptorType) int
getOrder()
protected final boolean
isFirstParameterMicronautDataDeleteSpecification
(io.micronaut.inject.ast.MethodElement methodElement) protected final boolean
isFirstParameterMicronautDataQuerySpecification
(io.micronaut.inject.ast.MethodElement methodElement) protected final boolean
isFirstParameterMicronautDataUpdateSpecification
(io.micronaut.inject.ast.MethodElement methodElement) protected final boolean
isFirstParameterMicronautJpaSpecification
(io.micronaut.inject.ast.MethodElement methodElement) protected final boolean
isFirstParameterSpringJpaSpecification
(io.micronaut.inject.ast.MethodElement methodElement) protected boolean
isMatchesParameters
(MethodMatchContext matchContext) Is matches parameters.match
(MethodMatchContext matchContext) Methods inherited from class io.micronaut.data.processor.visitors.finders.AbstractPrefixPatternMethodMatcher
match
-
Constructor Details
-
AbstractSpecificationMethodMatcher
Default constructor.- Parameters:
prefixes
- The method prefixes to match
-
-
Method Details
-
getOrder
public int getOrder() -
match
- Specified by:
match
in interfaceMethodMatcher
- Overrides:
match
in classAbstractPrefixPatternMethodMatcher
-
getInterceptorElement
protected final io.micronaut.inject.ast.ClassElement getInterceptorElement(MethodMatchContext matchContext, String interceptorType) - Parameters:
matchContext
- The match contextinterceptorType
- The interceptor type- Returns:
- The resolved class element
-
isMatchesParameters
Is matches parameters.- Parameters:
matchContext
- The context- Returns:
- true if matches
-
isFirstParameterSpringJpaSpecification
protected final boolean isFirstParameterSpringJpaSpecification(@NonNull io.micronaut.inject.ast.MethodElement methodElement) -
isFirstParameterMicronautJpaSpecification
protected final boolean isFirstParameterMicronautJpaSpecification(@NonNull io.micronaut.inject.ast.MethodElement methodElement) -
isFirstParameterMicronautDataQuerySpecification
protected final boolean isFirstParameterMicronautDataQuerySpecification(@NonNull io.micronaut.inject.ast.MethodElement methodElement) -
isFirstParameterMicronautDataDeleteSpecification
protected final boolean isFirstParameterMicronautDataDeleteSpecification(@NonNull io.micronaut.inject.ast.MethodElement methodElement) -
isFirstParameterMicronautDataUpdateSpecification
protected final boolean isFirstParameterMicronautDataUpdateSpecification(@NonNull io.micronaut.inject.ast.MethodElement methodElement)
-