Class DispatchWriter.FieldGetDispatchTarget

java.lang.Object
io.micronaut.inject.writer.DispatchWriter.AbstractDispatchTarget
io.micronaut.inject.writer.DispatchWriter.FieldGetDispatchTarget
All Implemented Interfaces:
DispatchWriter.DispatchTarget
Enclosing class:
DispatchWriter

@Internal public static final class DispatchWriter.FieldGetDispatchTarget extends DispatchWriter.AbstractDispatchTarget
Field get dispatch target.
  • Constructor Details

    • FieldGetDispatchTarget

      public FieldGetDispatchTarget(FieldElement beanField)
  • 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

      public MethodElement getMethodElement()
    • getDeclaringType

      public TypedElement getDeclaringType()
    • dispatchExpression

      public io.micronaut.sourcegen.model.ExpressionDef dispatchExpression(io.micronaut.sourcegen.model.ExpressionDef bean)
      Description copied from class: DispatchWriter.AbstractDispatchTarget
      Implements dispatch.
      Overrides:
      dispatchExpression in class DispatchWriter.AbstractDispatchTarget
      Parameters:
      bean - The target
      Returns:
      The dispatch expression
    • getField

      @NonNull public @NonNull FieldElement getField()