Package io.micronaut.inject.writer
Interface DispatchWriter.DispatchTarget
- All Known Implementing Classes:
DispatchWriter.AbstractDispatchTarget
,DispatchWriter.FieldGetDispatchTarget
,DispatchWriter.FieldSetDispatchTarget
,DispatchWriter.InterceptableMethodDispatchTarget
,DispatchWriter.KotlinMethodWithDefaultsDispatchTarget
,DispatchWriter.MethodDispatchTarget
,DispatchWriter.MethodReflectionDispatchTarget
- Enclosing class:
- DispatchWriter
Dispatch target implementation writer.
-
Method Summary
Modifier and TypeMethodDescriptiondefault io.micronaut.sourcegen.model.StatementDef
dispatch
(int caseValue, io.micronaut.sourcegen.model.ExpressionDef caseExpression, io.micronaut.sourcegen.model.ExpressionDef target, io.micronaut.sourcegen.model.ExpressionDef valuesArray) io.micronaut.sourcegen.model.StatementDef
dispatch
(io.micronaut.sourcegen.model.ExpressionDef target, io.micronaut.sourcegen.model.ExpressionDef valuesArray) default 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) boolean
boolean
-
Method Details
-
supportsDispatchOne
boolean supportsDispatchOne()- Returns:
- true if writer supports dispatch one.
-
supportsDispatchMulti
boolean supportsDispatchMulti()- Returns:
- true if writer supports dispatch multi.
-
dispatch
default io.micronaut.sourcegen.model.StatementDef dispatch(int caseValue, io.micronaut.sourcegen.model.ExpressionDef caseExpression, io.micronaut.sourcegen.model.ExpressionDef target, io.micronaut.sourcegen.model.ExpressionDef valuesArray) -
dispatchOne
default 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) -
dispatch
io.micronaut.sourcegen.model.StatementDef dispatch(io.micronaut.sourcegen.model.ExpressionDef target, io.micronaut.sourcegen.model.ExpressionDef valuesArray) -
getMethodElement
MethodElement getMethodElement() -
getDeclaringType
TypedElement getDeclaringType()
-