Class DispatchWriter.FieldGetReflectionDispatchTarget
java.lang.Object
io.micronaut.inject.writer.DispatchWriter.AbstractDispatchTarget
io.micronaut.inject.writer.DispatchWriter.FieldGetReflectionDispatchTarget
- All Implemented Interfaces:
DispatchWriter.DispatchTarget
- Enclosing class:
DispatchWriter
@Internal
public static final class DispatchWriter.FieldGetReflectionDispatchTarget
extends DispatchWriter.AbstractDispatchTarget
Field get dispatch target.
- Since:
- 4.7
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionFieldGetReflectionDispatchTarget(FieldElement beanField) FieldGetReflectionDispatchTarget(FieldElement beanField, ClassElement accessType) -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.sourcegen.model.ExpressionDefdispatchExpression(io.micronaut.sourcegen.model.ExpressionDef bean) Implements dispatch.getField()booleanbooleanMethods inherited from class DispatchWriter.AbstractDispatchTarget
dispatch, dispatchMultiExpression, dispatchMultiExpression, dispatchOne, dispatchOneExpression, dispatchOneVoidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DispatchWriter.DispatchTarget
dispatch
-
Constructor Details
-
FieldGetReflectionDispatchTarget
-
FieldGetReflectionDispatchTarget
- Parameters:
beanField- The fieldaccessType- The type the lookup of the field starts from: the owning type, or the declaring type of a field hidden in the owning type- Since:
- 5.2.0
-
-
Method Details
-
supportsDispatchOne
public boolean supportsDispatchOne()- Returns:
- true if writer supports dispatch one.
-
supportsDispatchMulti
public boolean supportsDispatchMulti()- Returns:
- true if writer supports dispatch multi.
-
getMethodElement
-
getDeclaringType
-
dispatchExpression
public io.micronaut.sourcegen.model.ExpressionDef dispatchExpression(io.micronaut.sourcegen.model.ExpressionDef bean) Description copied from class:DispatchWriter.AbstractDispatchTargetImplements dispatch.- Overrides:
dispatchExpressionin classDispatchWriter.AbstractDispatchTarget- Parameters:
bean- The target- Returns:
- The dispatch expression
-
getField
-