Package com.io7m.cedarbridge.codegen.javastatic.internal

# 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
  Constructor
  Description
  `CBCGProtocolGenerator()`
  A generator of Java classes for protocols.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Path`
  `execute(CBSPICodeGeneratorConfiguration configuration, String packageName, CBProtocolDeclarationType proto)`
  Generate code for the given type.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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: `CBCGJavaClassGeneratorType`
    Generate code for the given type.
    Specified by:
      `execute` in interface `CBCGJavaClassGeneratorType<CBProtocolDeclarationType>`
    Parameters:
      `configuration` - The generator configuration
      `packageName` - The package name
      `proto` - The type name
    Returns:
      The path to the generated class
    Throws:
      `CBSPICodeGeneratorException` - On errors