Package-level declarations

Types

Link copied to clipboard
class CodegenJavaFile(val packageName: String, val typeSpec: TypeSpec)

JavaPoet JavaFile are non qualified. This is a simple wrapper that carries a package name so that we can write the file

Link copied to clipboard
Link copied to clipboard
class JavaOutput(val javaFiles: List<JavaFile>, val codegenMetadata: CodegenMetadata)

Output of the Java code generation. It's a list of javapoet JavaFile together with some metadata that maps the Java files to their GraphQL origin.

Functions

Link copied to clipboard
fun CodeBlock.isNotEmpty(): Boolean
Link copied to clipboard
fun List<CodeBlock>.joinToCode(separator: String, prefix: String = "", suffix: String = ""): CodeBlock
Link copied to clipboard