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