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 Summary
Fields inherited from class MatchContext
annotationRoles, methodElement, parameters, returnType, typeRoles, visitorContextFields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionvoidFind implicit root entity.@Nullable io.micronaut.inject.ast.ElementfindParameterInRole(String role) Find the parameter in role.getEntity(io.micronaut.inject.ast.ClassElement element) Resolves an entity.Function<String, @Nullable SourcePersistentEntity> List<io.micronaut.inject.ast.ParameterElement> Returns a list of parameters that are not fulfilling a specific query role.List<io.micronaut.inject.ast.ParameterElement> Returns a list of parameters that are not fulfilling a specific query role.The root entity being queried.booleanhasParameterInRole(String role) Check whether a parameter is available in the given role.booleanvoidsetRootEntity(SourcePersistentEntity entity) Methods inherited from class MatchContext
fail, getAnnotationMetadata, getFindInterceptors, getMethodElement, getParameters, getQueryBuilder, getRepositoryClass, getReturnType, getUnableToImplementMessage, getVisitorContext, isPossiblyFailing, isTypeInRole, logPossibleFailures, supportsImplicitQueriesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Method Details
-
getEntityBySimplyNameResolver
- Returns:
- The entity by a simple name resolver
-
hasParameterInRole
Check 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
-
findParameterInRole
Find the parameter in role.- Parameters:
role- The parameter role- Returns:
- The parameter
-
getParametersInRole
-
hasRootEntity
public boolean hasRootEntity()- Returns:
- Has a root entity?
-
getRootEntity
The root entity being queried.- Returns:
- The root entity
-
setRootEntity
- Parameters:
entity- he root entity being queried.
-
getParametersNotInRole
Returns a list of parameters that are not fulfilling a specific query role.- Returns:
- The parameters not in role
-
getParametersInRoleList
Returns a list of parameters that are not fulfilling a specific query role.- Returns:
- The parameters not in role
-
getEntity
Resolves an entity.- Parameters:
element- The element- Returns:
- The entity
-
findImplicitRootEntity
public void findImplicitRootEntity()Find implicit root entity.- Since:
- 5.0
-