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

public abstract class AbstractSpecificationMethodMatcher extends AbstractPrefixPatternMethodMatcher
Abstract superclass for specification methods.
Since:
3.1
Author:
Denis Stepanov
  • Constructor Details

    • AbstractSpecificationMethodMatcher

      protected AbstractSpecificationMethodMatcher(String... prefixes)
      Default constructor.
      Parameters:
      prefixes - The method prefixes to match
  • Method Details

    • getOrder

      public int getOrder()
    • match

      public MethodMatcher.MethodMatch match(MethodMatchContext matchContext)
      Specified by:
      match in interface MethodMatcher
      Overrides:
      match in class AbstractPrefixPatternMethodMatcher
    • getInterceptorElement

      protected final io.micronaut.inject.ast.ClassElement getInterceptorElement(MethodMatchContext matchContext, String interceptorType)
      Parameters:
      matchContext - The match context
      interceptorType - 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 @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)