Interface DispatchWriter.DispatchTarget

All Known Implementing Classes:
DispatchWriter.FieldGetDispatchTarget, DispatchWriter.FieldSetDispatchTarget, DispatchWriter.InterceptableMethodDispatchTarget, DispatchWriter.MethodDispatchTarget
Enclosing class:
DispatchWriter

@Internal public static interface DispatchWriter.DispatchTarget
Dispatch target implementation writer.
  • 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)
      Generate dispatchOne with shared state.
      Parameters:
      writer - The method writer
      methodIndex - The method index
      stateMap - State map shared for this dispatchOne 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 index
      writer - 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 writer
      methodIndex - The method index