Package io.micronaut.inject.writer
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.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) Implement dispatch one.getField()
boolean
boolean
Methods inherited from class io.micronaut.inject.writer.DispatchWriter.AbstractDispatchTarget
dispatch, dispatchExpression, dispatchMultiExpression, dispatchMultiExpression, 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
-
Constructor Details
-
FieldSetDispatchTarget
-
-
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
-
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 interfaceDispatchWriter.DispatchTarget
- Overrides:
dispatchOne
in classDispatchWriter.AbstractDispatchTarget
- Parameters:
caseValue
- The case valuecaseExpression
- The case expressiontarget
- The targetvalue
- The value- Returns:
- The dispatch statement
-
getField
-