Package viaduct.x.javaapi.codegen
Class JavaGRTsCodegen
-
- All Implemented Interfaces:
public class JavaGRTsCodegenMain entry point for Java GRTs (GraphQL Representational Types) code generation. This class handles the generation logic and can be called from CLI or programmatically. Uses ViaductSchema as the schema abstraction layer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classJavaGRTsCodegen.ResultResult of the code generation process.
-
Constructor Summary
Constructors Constructor Description JavaGRTsCodegen()
-
Method Summary
-
-
Method Detail
-
generate
JavaGRTsCodegen.Result generate(List<File> schemaFiles, File grtOutputDir, String grtPackage, boolean includeRootTypes)
Generates Java GRTs from GraphQL schema files with optional root type inclusion.
GRT types are written to
grtOutputDirin package subdirectories.- Parameters:
schemaFiles- list of GraphQL schema files to parsegrtOutputDir- output directory for generated GRT files (written to package subdirs)grtPackage- Java package name for generated GRT typesincludeRootTypes- if true, includes Query, Mutation, Subscription types in generation- Returns:
result containing counts of generated types
-
-
-
-