Package io.micronaut.inject.writer
Class DispatchWriter.MethodDispatchTarget
java.lang.Object
io.micronaut.inject.writer.DispatchWriter.AbstractDispatchTarget
io.micronaut.inject.writer.DispatchWriter.MethodDispatchTarget
- All Implemented Interfaces:
DispatchWriter.DispatchTarget
- Enclosing class:
- DispatchWriter
@Internal
public static final class DispatchWriter.MethodDispatchTarget
extends DispatchWriter.AbstractDispatchTarget
Method invocation dispatch target.
-
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.sourcegen.model.ExpressionDef
dispatchMultiExpression
(io.micronaut.sourcegen.model.ExpressionDef target, List<? extends io.micronaut.sourcegen.model.ExpressionDef> values) Implements multi dispatch.io.micronaut.sourcegen.model.ExpressionDef
dispatchOneExpression
(io.micronaut.sourcegen.model.ExpressionDef target, io.micronaut.sourcegen.model.ExpressionDef value) Implements one dispatch.boolean
boolean
Methods inherited from class io.micronaut.inject.writer.DispatchWriter.AbstractDispatchTarget
dispatch, dispatchExpression, dispatchMultiExpression, dispatchOne
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.inject.writer.DispatchWriter.DispatchTarget
dispatch
-
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
-
getMethodElement
-
dispatchMultiExpression
public io.micronaut.sourcegen.model.ExpressionDef dispatchMultiExpression(io.micronaut.sourcegen.model.ExpressionDef target, List<? extends io.micronaut.sourcegen.model.ExpressionDef> values) Description copied from class:DispatchWriter.AbstractDispatchTarget
Implements multi dispatch.- Overrides:
dispatchMultiExpression
in classDispatchWriter.AbstractDispatchTarget
- Parameters:
target
- The targetvalues
- The values- Returns:
- The dispatch 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 classDispatchWriter.AbstractDispatchTarget
- Parameters:
target
- The targetvalue
- The value- Returns:
- The dispatch expression
-