Class CBCGProtocolInterfaceGenerator
java.lang.Object
com.io7m.cedarbridge.codegen.java.internal.protocols.CBCGProtocolInterfaceGenerator
- All Implemented Interfaces:
CBCGJavaClassGeneratorType<CBProtocolDeclarationType>
public final class CBCGProtocolInterfaceGenerator
extends Object
implements CBCGJavaClassGeneratorType<CBProtocolDeclarationType>
A generator of Java interface types for protocol declarations.
-
Constructor Summary
ConstructorsConstructorDescriptionA generator of Java interface types for protocol declarations. -
Method Summary
Modifier and TypeMethodDescriptionexecute(CBSPICodeGeneratorConfiguration configuration, String packageName, CBProtocolDeclarationType proto) Generate code for the given type.
-
Constructor Details
-
CBCGProtocolInterfaceGenerator
public CBCGProtocolInterfaceGenerator()A generator of Java interface types for protocol declarations.
-
-
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
-