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