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

# Class CBCGProtocolInterfaceGenerator

java.lang.Object
com.io7m.cedarbridge.codegen.javastatic.internal.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

  Constructors
  Constructor
  Description
  `CBCGProtocolInterfaceGenerator()`
  A generator of Java interface types for protocol declarations.

- ## 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

  - ### 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: `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