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