Package viaduct.x.javaapi.codegen
Class JavaGRTGenerator.InputGenerator
-
- All Implemented Interfaces:
public final class JavaGRTGenerator.InputGeneratorGenerator for Java classes from GraphQL input types.
-
-
Method Summary
Modifier and Type Method Description static Stringgenerate(InputModel model)Generates the Java class source code as a string. static FilegenerateToFile(InputModel model, File outputDir)Generates the Java class source code and writes it to a file. -
-
Method Detail
-
generate
static String generate(InputModel model)
Generates the Java class source code as a string.
- Parameters:
model- the input model- Returns:
the generated Java source code
-
generateToFile
static File generateToFile(InputModel model, File outputDir)
Generates the Java class source code and writes it to a file.
- Parameters:
model- the input modeloutputDir- the output directory- Returns:
the file that was written
-
-
-
-