Class DispatchWriter.FieldSetDispatchTarget

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

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

    • FieldSetDispatchTarget

      public FieldSetDispatchTarget(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()
    • dispatchOne

      public io.micronaut.sourcegen.model.StatementDef dispatchOne(int caseValue, io.micronaut.sourcegen.model.ExpressionDef caseExpression, io.micronaut.sourcegen.model.ExpressionDef target, io.micronaut.sourcegen.model.ExpressionDef value)
      Description copied from class: DispatchWriter.AbstractDispatchTarget
      Implement dispatch one.
      Specified by:
      dispatchOne in interface DispatchWriter.DispatchTarget
      Overrides:
      dispatchOne in class DispatchWriter.AbstractDispatchTarget
      Parameters:
      caseValue - The case value
      caseExpression - The case expression
      target - The target
      value - The value
      Returns:
      The dispatch statement
    • getField

      @NonNull public @NonNull FieldElement getField()