Interface CommandGenerator

All Known Implementing Classes:
BaseCommandGenerator, BukkitCommandGenerator, PaperCommandGenerator, StandaloneCommandGenerator

public interface CommandGenerator
Turns a parsed CommandModel into the platform wrapper source file.

Implementations read models, not the core command annotations, so parsing and generation can be developed and tested separately. The only annotation reads left are SPI handler dispatch and platform annotations.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Writes the wrapper class of the given command model.
  • Method Details

    • generate

      void generate(CommandModel model) throws IOException
      Writes the wrapper class of the given command model.
      Parameters:
      model - the parsed command tree
      Throws:
      IOException - when the source file cannot be written