public static class ProjectionMethodExpression.Property extends ProjectionMethodExpression implements io.micronaut.core.naming.Named
ProjectionMethodExpression.Avg, ProjectionMethodExpression.Distinct, ProjectionMethodExpression.Max, ProjectionMethodExpression.Min, ProjectionMethodExpression.Property, ProjectionMethodExpression.Sum
Constructor and Description |
---|
Property()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(MethodMatchContext matchContext,
QueryModel query)
Apply the projection to the query object.
|
io.micronaut.inject.ast.ClassElement |
getExpectedResultType() |
java.lang.String |
getName() |
protected ProjectionMethodExpression |
initProjection(MethodMatchContext matchContext,
java.lang.String remaining)
Initialize the projection, returning null if it cannot be initialized.
|
protected io.micronaut.inject.ast.ClassElement |
resolveExpectedType(MethodMatchContext matchContext,
io.micronaut.inject.ast.ClassElement classElement)
Resolve the expected type for the projection.
|
getRequiredProperties, init, matchProjection
protected ProjectionMethodExpression initProjection(@NonNull MethodMatchContext matchContext, java.lang.String remaining)
ProjectionMethodExpression
initProjection
in class ProjectionMethodExpression
matchContext
- The match contextremaining
- The remaing projection stringprotected io.micronaut.inject.ast.ClassElement resolveExpectedType(@NonNull MethodMatchContext matchContext, @NonNull io.micronaut.inject.ast.ClassElement classElement)
matchContext
- The match contextclassElement
- The class elementpublic void apply(@NonNull MethodMatchContext matchContext, @NonNull QueryModel query)
ProjectionMethodExpression
apply
in class ProjectionMethodExpression
matchContext
- The match context.query
- The query object.@NonNull public io.micronaut.inject.ast.ClassElement getExpectedResultType()
getExpectedResultType
in class ProjectionMethodExpression
@NonNull public java.lang.String getName()
getName
in interface io.micronaut.core.naming.Named