Class DispatchWriter.MethodReflectionDispatchTarget

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

@Internal public static final class DispatchWriter.MethodReflectionDispatchTarget extends DispatchWriter.AbstractDispatchTarget
Method invocation dispatch target.
  • Method Details

    • supportsDispatchOne

      public boolean supportsDispatchOne()
      Returns:
      true if writer supports dispatch one.
    • supportsDispatchMulti

      public boolean supportsDispatchMulti()
      Returns:
      true if writer supports dispatch multi.
    • getDeclaringType

      public TypedElement getDeclaringType()
    • getMethodElement

      public MethodElement getMethodElement()
    • dispatchMultiExpression

      public io.micronaut.sourcegen.model.ExpressionDef dispatchMultiExpression(io.micronaut.sourcegen.model.ExpressionDef target, io.micronaut.sourcegen.model.ExpressionDef valuesArray)
      Description copied from class: DispatchWriter.AbstractDispatchTarget
      Implements multi dispatch.
      Overrides:
      dispatchMultiExpression in class DispatchWriter.AbstractDispatchTarget
      Parameters:
      target - The target
      valuesArray - The values
      Returns:
      THe expression
    • dispatchOneExpression

      public io.micronaut.sourcegen.model.ExpressionDef dispatchOneExpression(io.micronaut.sourcegen.model.ExpressionDef target, io.micronaut.sourcegen.model.ExpressionDef value)
      Description copied from class: DispatchWriter.AbstractDispatchTarget
      Implements one dispatch.
      Overrides:
      dispatchOneExpression in class DispatchWriter.AbstractDispatchTarget
      Parameters:
      target - The target
      value - The value
      Returns:
      The dispatch expression