Class CBCGProtocolMessageSerializerGenerator
java.lang.Object
com.io7m.cedarbridge.codegen.javastatic.internal.CBCGProtocolMessageSerializerGenerator
- All Implemented Interfaces:
CBCGJavaClassGeneratorType<CBProtocolVersionDeclarationType>
public final class CBCGProtocolMessageSerializerGenerator
extends Object
implements CBCGJavaClassGeneratorType<CBProtocolVersionDeclarationType>
A generator of Java serializers for versioned protocols.
-
Constructor Summary
ConstructorsConstructorDescriptionA generator of Java interface types for protocol version declarations. -
Method Summary
Modifier and TypeMethodDescriptionexecute(CBSPICodeGeneratorConfiguration configuration, String packageName, CBProtocolVersionDeclarationType proto) Generate code for the given type.
-
Constructor Details
-
CBCGProtocolMessageSerializerGenerator
public CBCGProtocolMessageSerializerGenerator()A generator of Java interface types for protocol version declarations.
-
-
Method Details
-
execute
public Path execute(CBSPICodeGeneratorConfiguration configuration, String packageName, CBProtocolVersionDeclarationType proto) throws CBSPICodeGeneratorException Description copied from interface:CBCGJavaClassGeneratorTypeGenerate code for the given type.- Specified by:
executein interfaceCBCGJavaClassGeneratorType<CBProtocolVersionDeclarationType>- Parameters:
configuration- The generator configurationpackageName- The package nameproto- The type name- Returns:
- The path to the generated class
- Throws:
CBSPICodeGeneratorException- On errors
-