Class CodecGenerator

java.lang.Object
com.hedera.pbj.compiler.impl.generators.protobuf.CodecGenerator
All Implemented Interfaces:
Generator

public final class CodecGenerator extends Object implements Generator
Code generator that parses protobuf files and generates writers for each message type.
  • Constructor Details

    • CodecGenerator

      public CodecGenerator()
  • Method Details

    • generate

      public void generate(Protobuf3Parser.MessageDefContext msgDef, File destinationSrcDir, File destinationTestSrcDir, ContextualLookupHelper lookupHelper) throws IOException
      Generate a code from protobuf message type
      Specified by:
      generate in interface Generator
      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