Class MethodMatchContext
java.lang.Object
io.micronaut.data.processor.visitors.MatchContext
io.micronaut.data.processor.visitors.MethodMatchContext
- All Implemented Interfaces:
- io.micronaut.core.annotation.AnnotationMetadataProvider,- io.micronaut.core.annotation.AnnotationSource
A match context for finding a matching method.
- Since:
- 1.0
- Author:
- graemerocher
- 
Field SummaryFields inherited from class io.micronaut.data.processor.visitors.MatchContextmethodElement, parameters, returnType, typeRoles, visitorContextFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTY
- 
Method SummaryModifier and TypeMethodDescription@NonNull SourcePersistentEntitygetEntity(@NonNull io.micronaut.inject.ast.ClassElement element) Resolves an entity.@NonNull List<io.micronaut.inject.ast.ParameterElement>Returns a list of parameters that are not fulfilling a specific query role.@NonNull SourcePersistentEntityThe root entity being queried.booleanhasParameterInRole(@NonNull String role) Check whether a parameter is available in the given role.Methods inherited from class io.micronaut.data.processor.visitors.MatchContextfail, getAnnotationMetadata, getFindInterceptors, getMethodElement, getParameters, getQueryBuilder, getRepositoryClass, getReturnType, getUnableToImplementMessage, getVisitorContext, isFailing, isPossiblyFailing, isTypeInRole, logPossibleFailures, possiblyFail, supportsImplicitQueriesMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProviderfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSourcegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
- 
Method Details- 
hasParameterInRoleCheck whether a parameter is available in the given role.- Parameters:
- role- The role
- Returns:
- True if there is a parameter available in the given role
 
- 
getParametersInRole- Returns:
- Parameters that fulfill a query execution role
 
- 
getRootEntityThe root entity being queried.- Returns:
- The root entity
 
- 
getParametersNotInRoleReturns a list of parameters that are not fulfilling a specific query role.- Returns:
- The parameters not in role
 
- 
getEntity@NonNull public @NonNull SourcePersistentEntity getEntity(@NonNull @NonNull io.micronaut.inject.ast.ClassElement element) Resolves an entity.- Parameters:
- element- The element
- Returns:
- The entity
 
 
-