Package com.io7m.cedarbridge.codegen.java.internal.data_classes

# Class CBCGDataClassGenerator

java.lang.Object
com.io7m.cedarbridge.codegen.java.internal.data_classes.CBCGDataClassGenerator

All Implemented Interfaces:
  `CBCGJavaClassGeneratorType<CBTypeDeclarationType>`

public final class CBCGDataClassGenerator extends Object implements CBCGJavaClassGeneratorType<CBTypeDeclarationType>
A generator of Java data classes for types.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBCGDataClassGenerator()`
  A generator of Java data classes for types.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Path`
  `execute(CBSPICodeGeneratorConfiguration configuration, String packageName, CBTypeDeclarationType type)`
  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

  - ### CBCGDataClassGenerator

    public CBCGDataClassGenerator()
    A generator of Java data classes for types.

- ## Method Details

  - ### execute

    public Path execute(CBSPICodeGeneratorConfiguration configuration, String packageName, CBTypeDeclarationType type) throws CBSPICodeGeneratorException
    Description copied from interface: `CBCGJavaClassGeneratorType`
    Generate code for the given type.
    Specified by:
      `execute` in interface `CBCGJavaClassGeneratorType<CBTypeDeclarationType>`
    Parameters:
      `configuration` - The generator configuration
      `packageName` - The package name
      `type` - The type name
    Returns:
      The path to the generated class
    Throws:
      `CBSPICodeGeneratorException` - On errors