Interface Generator

All Known Implementing Classes:
CodecGenerator, JsonCodecGenerator, ModelGenerator, SchemaGenerator, TestGenerator

public interface Generator
Interface for a code generator from protobuf message definition
  • Field Details

    • GENERATORS

      static final List<Class<? extends Generator>> GENERATORS
      List of all generator classes
  • Method Details

    • generate

      void generate(Protobuf3Parser.MessageDefContext msgDef, File destinationSrcDir, File destinationTestSrcDir, ContextualLookupHelper lookupHelper) throws IOException
      Generate a code from protobuf message type
      Parameters:
      msgDef - the parsed message
      destinationSrcDir - the destination source directory to generate into
      destinationTestSrcDir - the destination source directory to generate test files into
      lookupHelper - Lookup helper for global context lookups
      Throws:
      IOException - if there was a problem writing generated code