public class MatchContext
extends java.lang.Object
implements io.micronaut.core.annotation.AnnotationMetadataProvider
Modifier and Type | Field and Description |
---|---|
protected io.micronaut.inject.ast.MethodElement |
methodElement |
protected io.micronaut.inject.ast.ParameterElement[] |
parameters |
protected io.micronaut.inject.ast.ClassElement |
returnType |
protected java.util.Map<java.lang.String,java.lang.String> |
typeRoles |
protected io.micronaut.inject.visitor.VisitorContext |
visitorContext |
Modifier and Type | Method and Description |
---|---|
void |
fail(java.lang.String message)
Fail compilation with the given message for the current method.
|
io.micronaut.core.annotation.AnnotationMetadata |
getAnnotationMetadata() |
io.micronaut.inject.ast.MethodElement |
getMethodElement() |
io.micronaut.inject.ast.ParameterElement[] |
getParameters() |
QueryBuilder |
getQueryBuilder() |
io.micronaut.inject.ast.ClassElement |
getRepositoryClass() |
io.micronaut.inject.ast.ClassElement |
getReturnType() |
java.lang.String |
getUnableToImplementMessage() |
io.micronaut.inject.visitor.VisitorContext |
getVisitorContext() |
boolean |
isFailing()
Is there a current error.
|
boolean |
isTypeInRole(io.micronaut.inject.ast.ClassElement type,
java.lang.String role)
Check whether the given type performs the given role.
|
boolean |
supportsImplicitQueries()
Whether or not implicit queries such as lookup by id and counting is supported without an explicit query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
@NonNull protected final io.micronaut.inject.visitor.VisitorContext visitorContext
@NonNull protected final io.micronaut.inject.ast.MethodElement methodElement
protected final java.util.Map<java.lang.String,java.lang.String> typeRoles
protected final io.micronaut.inject.ast.ClassElement returnType
@NonNull protected final io.micronaut.inject.ast.ParameterElement[] parameters
public QueryBuilder getQueryBuilder()
public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
getAnnotationMetadata
in interface io.micronaut.core.annotation.AnnotationMetadataProvider
public boolean isTypeInRole(@NonNull io.micronaut.inject.ast.ClassElement type, @NonNull java.lang.String role)
type
- The typerole
- The role@NonNull public io.micronaut.inject.visitor.VisitorContext getVisitorContext()
@NonNull public io.micronaut.inject.ast.MethodElement getMethodElement()
@NonNull public io.micronaut.inject.ast.ClassElement getReturnType()
@NonNull public io.micronaut.inject.ast.ParameterElement[] getParameters()
public void fail(@NonNull java.lang.String message)
message
- The messagepublic boolean isFailing()
public boolean supportsImplicitQueries()
@NonNull public io.micronaut.inject.ast.ClassElement getRepositoryClass()
public java.lang.String getUnableToImplementMessage()