CodeGenerator

fun interface CodeGenerator

A code generator that may write code in ApolloCompilerPluginEnvironment.outputDirectory

This is not a kotlin function type because this might be used in environments where those types are relocated and might fail to load at runtime. For an example, in a Gradle plugin.

Functions

Link copied to clipboard
abstract fun generate(schema: GQLDocument, outputDirectory: File)

Transforms the given input into an output of the same type