Class CBCGDataClassGenerator
java.lang.Object
com.io7m.cedarbridge.codegen.javastatic.internal.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 -
Method Summary
Modifier and TypeMethodDescriptionexecute(CBSPICodeGeneratorConfiguration configuration, String packageName, CBTypeDeclarationType type) Generate code for the given type.
-
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:CBCGJavaClassGeneratorTypeGenerate code for the given type.- Specified by:
executein interfaceCBCGJavaClassGeneratorType<CBTypeDeclarationType>- Parameters:
configuration- The generator configurationpackageName- The package nametype- The type name- Returns:
- The path to the generated class
- Throws:
CBSPICodeGeneratorException- On errors
-