Options
fun Options( executableFiles: Set<File>, schemaFile: File, outputDir: File, testDir: File = outputDir, packageName: String = "")
Content copied to clipboard
A shorthand version that takes a File as input for the schema as well as a simple packageName and has default values for quick configuration. XXX: move this to a builder?
fun Options( executableFiles: Set<File>, schema: Schema, outputDir: File, testDir: File, debugDir: File? = null, operationManifestFile: File? = null, operationManifestFormat: String = MANIFEST_NONE, schemaPackageName: String, useSchemaPackageNameForFragments: Boolean = defaultUseSchemaPackageNameForFragments, packageNameGenerator: PackageNameGenerator, alwaysGenerateTypesMatching: Set<String> = defaultAlwaysGenerateTypesMatching, operationOutputGenerator: OperationOutputGenerator = defaultOperationOutputGenerator, incomingCompilerMetadata: List<CompilerMetadata> = emptyList(), targetLanguage: TargetLanguage = defaultTargetLanguage, scalarMapping: Map<String, ScalarInfo> = defaultScalarMapping, codegenModels: String = defaultCodegenModels, flattenModels: Boolean = defaultFlattenModels, useSemanticNaming: Boolean = defaultUseSemanticNaming, warnOnDeprecatedUsages: Boolean = defaultWarnOnDeprecatedUsages, failOnWarnings: Boolean = defaultFailOnWarnings, logger: ApolloCompiler.Logger = defaultLogger, generateAsInternal: Boolean = defaultGenerateAsInternal, generateFilterNotNull: Boolean = defaultGenerateFilterNotNull, generateFragmentImplementations: Boolean = defaultGenerateFragmentImplementations, generateResponseFields: Boolean = defaultGenerateResponseFields, generateQueryDocument: Boolean = defaultGenerateQueryDocument, generateSchema: Boolean = defaultGenerateSchema, generatedSchemaName: String = defaultGeneratedSchemaName, generateTestBuilders: Boolean = defaultGenerateTestBuilders, generateDataBuilders: Boolean = defaultGenerateDataBuilders, generateModelBuilders: Boolean = defaultGenerateModelBuilders, sealedClassesForEnumsMatching: List<String> = defaultSealedClassesForEnumsMatching, classesForEnumsMatching: List<String> = defaultClassesForEnumsMatching, generateOptionalOperationVariables: Boolean = defaultGenerateOptionalOperationVariables, addJvmOverloads: Boolean = false, addTypename: String = defaultAddTypename, requiresOptInAnnotation: String? = defaultRequiresOptInAnnotation, fieldsOnDisjointTypesMustMerge: Boolean = defaultFieldsOnDisjointTypesMustMerge, generatePrimitiveTypes: Boolean = defaultGeneratePrimitiveTypes, nullableFieldStyle: JavaNullable = defaultNullableFieldStyle, decapitalizeFields: Boolean = defaultDecapitalizeFields, compilerKotlinHooks: ApolloCompilerKotlinHooks = defaultCompilerKotlinHooks, compilerJavaHooks: ApolloCompilerJavaHooks = defaultCompilerJavaHooks)
Content copied to clipboard