Class GenerateCodeGenerator

java.lang.Object
com.graphql_java_generator.plugin.generate_code.GenerateCodeGenerator
All Implemented Interfaces:
Generator, org.springframework.beans.factory.InitializingBean

@Component public class GenerateCodeGenerator extends Object implements Generator, org.springframework.beans.factory.InitializingBean
This class generates the code for the graphql goals/tasks of the plugin, from the classes coming from the com.graphql_java_generator.plugin.language package. This classes have been created by {link GenerateCodeDocumentParser.
This class should not be used directly. Please use the GenerateCodePluginExecutor instead.
Author:
etienne-sf
  • Constructor Details

    • GenerateCodeGenerator

      public GenerateCodeGenerator()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • generateCode

      public int generateCode() throws IOException
      Execution of the code generation. The generation is done on the data build by the generateCodeDocumentParser
      Specified by:
      generateCode in interface Generator
      Throws:
      MojoExecutionException
      IOException
    • resolveTemplate

      protected String resolveTemplate(CodeTemplate templateCode)
      Resolves the template for the given code
      Parameters:
      templateCode -
      Returns: