Interface FindersUtils
@Internal
public interface FindersUtils
Finders utils.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classInternally used for dynamically defining a class element.static final recordThe interceptor match.
- 
Method SummaryStatic MethodsModifier and TypeMethodDescriptionstatic io.micronaut.inject.ast.ClassElementgetAsyncType(@NonNull io.micronaut.inject.ast.MethodElement methodElement, @NonNull io.micronaut.inject.ast.ClassElement returnType) static List<FindInterceptorDef>getDefaultInterceptors(io.micronaut.inject.visitor.VisitorContext visitorContext) static io.micronaut.inject.ast.ClassElementgetInterceptorElement(@NonNull MethodMatchContext matchContext, Class<? extends DataInterceptor> type) Obtain the interceptor element for the given class.static io.micronaut.inject.ast.ClassElementgetInterceptorElement(@NonNull MethodMatchContext matchContext, String type) Obtain the interceptor element for the given class name.static booleanisContainer(io.micronaut.inject.ast.ClassElement typeArgument, io.micronaut.inject.ast.ClassElement containerType) static booleanisContainer(io.micronaut.inject.ast.ClassElement typeArgument, Class<?> containerType) static booleanisContainer(io.micronaut.inject.ast.ClassElement typeArgument, String containerType) static booleanisFindAllCompatibleReturnType(MatchContext matchContext) static booleanisFutureType(io.micronaut.inject.ast.MethodElement methodElement, @Nullable io.micronaut.inject.ast.ClassElement type) static booleanisOneOfContainers(io.micronaut.inject.ast.ClassElement typeArgument, Class<?>... containers) static booleanisPage(MethodMatchContext methodMatchContext, io.micronaut.inject.ast.ClassElement typeArgument) static booleanisReactiveSingleResult(io.micronaut.inject.ast.ClassElement returnType) static booleanisReactiveType(@Nullable io.micronaut.inject.ast.ClassElement type) static booleanisSlice(MethodMatchContext methodMatchContext, io.micronaut.inject.ast.ClassElement typeArgument) static booleanisValidResultType(io.micronaut.inject.ast.ClassElement returnType) pickCountInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickCountSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickDeleteAllInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickDeleteAllSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickDeleteInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickExistsInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickExistsSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickFindAllSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickFindByIdInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickFindOneInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickFindOneSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickFindPageSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickSaveAllEntitiesInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickSaveEntityInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickSaveOneInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickUpdateAllEntitiesInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickUpdateAllSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickUpdateEntityInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) pickUpdateInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) resolveAsyncFindInterceptor(@NonNull MethodMatchContext matchContext, @NonNull io.micronaut.inject.ast.ClassElement asyncType) resolveFindInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) resolveInterceptorTypeByOperationType(boolean hasEntityParameter, boolean hasMultipleEntityParameter, DataMethod.OperationType operationType, MethodMatchContext matchContext) resolveReactiveFindInterceptor(@NonNull MethodMatchContext matchContext, @NonNull io.micronaut.inject.ast.ClassElement returnType, @NonNull io.micronaut.inject.ast.ClassElement reactiveType) resolveSyncFindInterceptor(@NonNull MethodMatchContext matchContext, @NonNull io.micronaut.inject.ast.ClassElement returnType) typeAndInterceptorEntry(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement type, Class<? extends DataInterceptor> interceptor) typeAndInterceptorEntry(io.micronaut.inject.ast.ClassElement type, io.micronaut.inject.ast.ClassElement interceptor) 
- 
Method Details- 
isFindAllCompatibleReturnType
- 
getDefaultInterceptorsstatic List<FindInterceptorDef> getDefaultInterceptors(io.micronaut.inject.visitor.VisitorContext visitorContext) 
- 
resolveInterceptorTypeByOperationTypestatic FindersUtils.InterceptorMatch resolveInterceptorTypeByOperationType(boolean hasEntityParameter, boolean hasMultipleEntityParameter, DataMethod.OperationType operationType, MethodMatchContext matchContext) 
- 
pickSaveOneInterceptorstatic FindersUtils.InterceptorMatch pickSaveOneInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickUpdateAllEntitiesInterceptorstatic FindersUtils.InterceptorMatch pickUpdateAllEntitiesInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickDeleteInterceptorstatic FindersUtils.InterceptorMatch pickDeleteInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickDeleteAllInterceptorstatic FindersUtils.InterceptorMatch pickDeleteAllInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickSaveEntityInterceptorstatic FindersUtils.InterceptorMatch pickSaveEntityInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickSaveAllEntitiesInterceptorstatic FindersUtils.InterceptorMatch pickSaveAllEntitiesInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickUpdateInterceptorstatic FindersUtils.InterceptorMatch pickUpdateInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickUpdateEntityInterceptorstatic FindersUtils.InterceptorMatch pickUpdateEntityInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
resolveFindInterceptorstatic FindersUtils.InterceptorMatch resolveFindInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
resolveSyncFindInterceptorstatic FindersUtils.InterceptorMatch resolveSyncFindInterceptor(@NonNull @NonNull MethodMatchContext matchContext, @NonNull @NonNull io.micronaut.inject.ast.ClassElement returnType) 
- 
resolveReactiveFindInterceptorstatic FindersUtils.InterceptorMatch resolveReactiveFindInterceptor(@NonNull @NonNull MethodMatchContext matchContext, @NonNull @NonNull io.micronaut.inject.ast.ClassElement returnType, @NonNull @NonNull io.micronaut.inject.ast.ClassElement reactiveType) 
- 
resolveAsyncFindInterceptorstatic FindersUtils.InterceptorMatch resolveAsyncFindInterceptor(@NonNull @NonNull MethodMatchContext matchContext, @NonNull @NonNull io.micronaut.inject.ast.ClassElement asyncType) 
- 
pickCountInterceptorstatic FindersUtils.InterceptorMatch pickCountInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickExistsInterceptorstatic FindersUtils.InterceptorMatch pickExistsInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickFindByIdInterceptorstatic FindersUtils.InterceptorMatch pickFindByIdInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickFindOneInterceptorstatic FindersUtils.InterceptorMatch pickFindOneInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickCountSpecInterceptorstatic FindersUtils.InterceptorMatch pickCountSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickDeleteAllSpecInterceptorstatic FindersUtils.InterceptorMatch pickDeleteAllSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickFindAllSpecInterceptorstatic FindersUtils.InterceptorMatch pickFindAllSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickFindOneSpecInterceptorstatic FindersUtils.InterceptorMatch pickFindOneSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickFindPageSpecInterceptorstatic FindersUtils.InterceptorMatch pickFindPageSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickUpdateAllSpecInterceptorstatic FindersUtils.InterceptorMatch pickUpdateAllSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
pickExistsSpecInterceptorstatic FindersUtils.InterceptorMatch pickExistsSpecInterceptor(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement returnType) 
- 
getAsyncTypestatic io.micronaut.inject.ast.ClassElement getAsyncType(@NonNull @NonNull io.micronaut.inject.ast.MethodElement methodElement, @NonNull @NonNull io.micronaut.inject.ast.ClassElement returnType) 
- 
typeAndInterceptorEntrystatic FindersUtils.InterceptorMatch typeAndInterceptorEntry(MethodMatchContext matchContext, io.micronaut.inject.ast.ClassElement type, Class<? extends DataInterceptor> interceptor) 
- 
typeAndInterceptorEntrystatic FindersUtils.InterceptorMatch typeAndInterceptorEntry(io.micronaut.inject.ast.ClassElement type, io.micronaut.inject.ast.ClassElement interceptor) 
- 
isFutureTypestatic boolean isFutureType(io.micronaut.inject.ast.MethodElement methodElement, @Nullable @Nullable io.micronaut.inject.ast.ClassElement type) 
- 
isReactiveTypestatic boolean isReactiveType(@Nullable @Nullable io.micronaut.inject.ast.ClassElement type) 
- 
isPagestatic boolean isPage(MethodMatchContext methodMatchContext, io.micronaut.inject.ast.ClassElement typeArgument) 
- 
isSlicestatic boolean isSlice(MethodMatchContext methodMatchContext, io.micronaut.inject.ast.ClassElement typeArgument) 
- 
isContainerstatic boolean isContainer(io.micronaut.inject.ast.ClassElement typeArgument, Class<?> containerType) 
- 
isContainerstatic boolean isContainer(io.micronaut.inject.ast.ClassElement typeArgument, io.micronaut.inject.ast.ClassElement containerType) 
- 
isOneOfContainersstatic boolean isOneOfContainers(io.micronaut.inject.ast.ClassElement typeArgument, Class<?>... containers) 
- 
isContainer
- 
isValidResultTypestatic boolean isValidResultType(io.micronaut.inject.ast.ClassElement returnType) 
- 
isReactiveSingleResultstatic boolean isReactiveSingleResult(io.micronaut.inject.ast.ClassElement returnType) 
- 
getInterceptorElementstatic io.micronaut.inject.ast.ClassElement getInterceptorElement(@NonNull @NonNull MethodMatchContext matchContext, Class<? extends DataInterceptor> type) Obtain the interceptor element for the given class.- Parameters:
- matchContext- The match context
- type- The type
- Returns:
- The element
 
- 
getInterceptorElementstatic io.micronaut.inject.ast.ClassElement getInterceptorElement(@NonNull @NonNull MethodMatchContext matchContext, String type) Obtain the interceptor element for the given class name.- Parameters:
- matchContext- The match context
- type- The type
- Returns:
- The element
 
 
-