Interface Generator
- All Known Implementing Classes:
CodecGenerator,JsonCodecGenerator,ModelGenerator,SchemaGenerator,TestGenerator
public interface Generator
Interface for a code generator from protobuf message definition
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of all generator classes -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(Protobuf3Parser.MessageDefContext msgDef, File destinationSrcDir, File destinationTestSrcDir, ContextualLookupHelper lookupHelper) Generate a code from protobuf message type
-
Field Details
-
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 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
-