Class GraphQLGenerator

java.lang.Object
no.sikt.graphitron.generate.GraphQLGenerator

public class GraphQLGenerator extends Object
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 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

      public static List<ClassGenerator> getGenerators(ProcessedSchema processedSchema)
    • generate

      public static void generate(List<ClassGenerator> generators)
      Run a list of generators.
      Parameters:
      generators - The generators that should be executed.
    • generateAsStrings

      public static Map<String,List<String>> generateAsStrings(List<ClassGenerator> generators)
    • getProcessedSchema

      public static ProcessedSchema getProcessedSchema()
      Returns:
      A Graphitron-interpreted version of the schema files set in GeneratorConfig.
    • getProcessedSchema

      public static ProcessedSchema getProcessedSchema(boolean verbose)
      Parameters:
      verbose - Should the files read be logged?
      Returns:
      A Graphitron-interpreted version of the schema files set in GeneratorConfig.