Package io.micronaut.inject.writer
Interface DispatchWriter.DispatchTarget
- All Known Implementing Classes:
DispatchWriter.FieldGetDispatchTarget
,DispatchWriter.FieldSetDispatchTarget
,DispatchWriter.InterceptableMethodDispatchTarget
,DispatchWriter.MethodDispatchTarget
- Enclosing class:
- DispatchWriter
Dispatch target implementation writer.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
default boolean
default void
writeDispatchMulti
(org.objectweb.asm.commons.GeneratorAdapter writer, int methodIndex) Generate dispatch multi.default void
writeDispatchOne
(org.objectweb.asm.commons.GeneratorAdapter writer, int methodIndex) Generate dispatch one.default boolean
writeDispatchOne
(org.objectweb.asm.commons.GeneratorAdapter writer, int methodIndex, Map<String, DispatchWriter.DispatchTargetState> stateMap) GeneratedispatchOne
with shared state.
-
Method Details
-
supportsDispatchOne
default boolean supportsDispatchOne()- Returns:
- true if writer supports dispatch one.
-
writeDispatchOne
default boolean writeDispatchOne(org.objectweb.asm.commons.GeneratorAdapter writer, int methodIndex, Map<String, DispatchWriter.DispatchTargetState> stateMap) GeneratedispatchOne
with shared state.- Parameters:
writer
- The method writermethodIndex
- The method indexstateMap
- State map shared for thisdispatchOne
method, may be written to- Returns:
true
iff the return value is on the top of the stack,false
iff we branched instead
-
writeDispatchOne
default void writeDispatchOne(org.objectweb.asm.commons.GeneratorAdapter writer, int methodIndex) Generate dispatch one.- Parameters:
methodIndex
- The method indexwriter
- The writer
-
supportsDispatchMulti
default boolean supportsDispatchMulti()- Returns:
- true if writer supports dispatch multi.
-
writeDispatchMulti
default void writeDispatchMulti(org.objectweb.asm.commons.GeneratorAdapter writer, int methodIndex) Generate dispatch multi.- Parameters:
writer
- The writermethodIndex
- The method index
-