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
,FindAllSpecificationMethodMatcher
,FindOneSpecificationMethodMatcher
,FindPageSpecificationMethodMatcher
,UpdateAllSpecificationMethodMatcher
public abstract class AbstractSpecificationMethodMatcher extends AbstractPrefixPatternMethodMatcher
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSpecificationMethodMatcher(java.lang.String... prefixes)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.micronaut.inject.ast.ClassElement
getInterceptorElement(MethodMatchContext matchContext, java.lang.String interceptorType)
int
getOrder()
protected boolean
isFirstParameterMicronautDataDeleteSpecification(io.micronaut.inject.ast.MethodElement methodElement)
protected boolean
isFirstParameterMicronautDataQuerySpecification(io.micronaut.inject.ast.MethodElement methodElement)
protected boolean
isFirstParameterMicronautDataUpdateSpecification(io.micronaut.inject.ast.MethodElement methodElement)
protected boolean
isFirstParameterMicronautJpaSpecification(io.micronaut.inject.ast.MethodElement methodElement)
protected boolean
isFirstParameterSpringJpaSpecification(io.micronaut.inject.ast.MethodElement methodElement)
protected boolean
isMatchesParameters(MethodMatchContext matchContext)
Is matches parameters.MethodMatcher.MethodMatch
match(MethodMatchContext matchContext)
-
Methods inherited from class io.micronaut.data.processor.visitors.finders.AbstractPrefixPatternMethodMatcher
match
-
-
-
-
Method Detail
-
getOrder
public int getOrder()
-
match
public MethodMatcher.MethodMatch match(MethodMatchContext matchContext)
- Specified by:
match
in interfaceMethodMatcher
- Overrides:
match
in classAbstractPrefixPatternMethodMatcher
-
getInterceptorElement
protected final io.micronaut.inject.ast.ClassElement getInterceptorElement(MethodMatchContext matchContext, java.lang.String interceptorType)
- Parameters:
matchContext
- The match contextinterceptorType
- The interceptor type- Returns:
- The resolved class element
-
isMatchesParameters
protected boolean isMatchesParameters(MethodMatchContext matchContext)
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)
-
-