Package viaduct.x.javaapi.codegen
Class JavaGRTGenerator.EnumGenerator
-
- All Implemented Interfaces:
public final class JavaGRTGenerator.EnumGeneratorGenerator for Java enums from GraphQL enum types.
-
-
Method Summary
-
-
Method Detail
-
generate
static String generate(EnumModel model)
Generates the Java enum source code as a string.
- Parameters:
model- the enum model- Returns:
the generated Java source code
-
generateToFile
static File generateToFile(EnumModel model, File outputDir)
Generates the Java enum source code and writes it to a file.
- Parameters:
model- the enum modeloutputDir- the output directory- Returns:
the file that was written
-
-
-
-