Package no.sikt.graphitron.generate
Class GraphQLGenerator
java.lang.Object
no.sikt.graphitron.generate.GraphQLGenerator
Class for executing the code generation. Defines which generators should run by default.
This assumes that generator configuration is set before calling any of these methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerate()Execute the code generation on the default set of generators and logging settings.static voidgenerate(List<ClassGenerator> generators) Run a list of generators.generateAsStrings(List<ClassGenerator> generators) static List<ClassGenerator>getGenerators(ProcessedSchema processedSchema) static ProcessedSchemastatic ProcessedSchemagetProcessedSchema(boolean verbose)
-
Constructor Details
-
GraphQLGenerator
public GraphQLGenerator()
-
-
Method Details
-
generate
public static void generate()Execute the code generation on the default set of generators and logging settings. -
getGenerators
-
generate
Run a list of generators.- Parameters:
generators- The generators that should be executed.
-
generateAsStrings
-
getProcessedSchema
- Returns:
- A Graphitron-interpreted version of the schema files set in
GeneratorConfig.
-
getProcessedSchema
- Parameters:
verbose- Should the files read be logged?- Returns:
- A Graphitron-interpreted version of the schema files set in
GeneratorConfig.
-