Class CodecGenerator
java.lang.Object
com.hedera.pbj.compiler.impl.generators.protobuf.CodecGenerator
- All Implemented Interfaces:
Generator
Code generator that parses protobuf files and generates writers for each message type.
-
Field Summary
Fields inherited from interface com.hedera.pbj.compiler.impl.generators.Generator
GENERATORS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(Protobuf3Parser.MessageDefContext msgDef, File destinationSrcDir, File destinationTestSrcDir, ContextualLookupHelper lookupHelper) Generate a code from protobuf 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:
generatein interfaceGenerator- Parameters:
msgDef- the parsed messagedestinationSrcDir- the destination source directory to generate intodestinationTestSrcDir- the destination source directory to generate test files intolookupHelper- Lookup helper for global context lookups- Throws:
IOException- if there was a problem writing generated code
-