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