Package io.micronaut.inject.writer
Class DispatchWriter.InterceptableMethodDispatchTarget
java.lang.Object
io.micronaut.inject.writer.DispatchWriter.AbstractDispatchTarget
io.micronaut.inject.writer.DispatchWriter.InterceptableMethodDispatchTarget
- All Implemented Interfaces:
DispatchWriter.DispatchTarget
- Enclosing class:
- DispatchWriter
@Internal
public static final class DispatchWriter.InterceptableMethodDispatchTarget
extends DispatchWriter.AbstractDispatchTarget
Interceptable method invocation dispatch target.
-
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.sourcegen.model.StatementDef
dispatch
(io.micronaut.sourcegen.model.ExpressionDef target, io.micronaut.sourcegen.model.ExpressionDef valuesArray) Implement dispatch.boolean
boolean
Methods inherited from class io.micronaut.inject.writer.DispatchWriter.AbstractDispatchTarget
dispatchExpression, dispatchMultiExpression, dispatchMultiExpression, dispatchOne, dispatchOneExpression
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
-
dispatch
public io.micronaut.sourcegen.model.StatementDef dispatch(io.micronaut.sourcegen.model.ExpressionDef target, io.micronaut.sourcegen.model.ExpressionDef valuesArray) Description copied from class:DispatchWriter.AbstractDispatchTarget
Implement dispatch.- Specified by:
dispatch
in interfaceDispatchWriter.DispatchTarget
- Overrides:
dispatch
in classDispatchWriter.AbstractDispatchTarget
- Parameters:
target
- The targetvaluesArray
- The values array- Returns:
- The dispatch statement
-