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