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
patternFields inherited from interface io.micronaut.data.processor.visitors.finders.MethodMatcher
DEFAULT_POSITIONFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSpecificationMethodMatcher(String... prefixes) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final io.micronaut.inject.ast.ClassElementgetInterceptorElement(MethodMatchContext matchContext, String interceptorType) intgetOrder()protected final booleanisFirstParameterMicronautDataDeleteSpecification(@NonNull io.micronaut.inject.ast.MethodElement methodElement) protected final booleanisFirstParameterMicronautDataQuerySpecification(@NonNull io.micronaut.inject.ast.MethodElement methodElement) protected final booleanisFirstParameterMicronautDataUpdateSpecification(@NonNull io.micronaut.inject.ast.MethodElement methodElement) protected final booleanisFirstParameterMicronautJpaSpecification(@NonNull io.micronaut.inject.ast.MethodElement methodElement) protected final booleanisFirstParameterSpringJpaSpecification(@NonNull io.micronaut.inject.ast.MethodElement methodElement) protected booleanisMatchesParameters(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:
matchin interfaceMethodMatcher- Overrides:
matchin 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 @NonNull io.micronaut.inject.ast.MethodElement methodElement) -
isFirstParameterMicronautJpaSpecification
protected final boolean isFirstParameterMicronautJpaSpecification(@NonNull @NonNull io.micronaut.inject.ast.MethodElement methodElement) -
isFirstParameterMicronautDataQuerySpecification
protected final boolean isFirstParameterMicronautDataQuerySpecification(@NonNull @NonNull io.micronaut.inject.ast.MethodElement methodElement) -
isFirstParameterMicronautDataDeleteSpecification
protected final boolean isFirstParameterMicronautDataDeleteSpecification(@NonNull @NonNull io.micronaut.inject.ast.MethodElement methodElement) -
isFirstParameterMicronautDataUpdateSpecification
protected final boolean isFirstParameterMicronautDataUpdateSpecification(@NonNull @NonNull io.micronaut.inject.ast.MethodElement methodElement)
-