AddInternalCompilerHooks

class AddInternalCompilerHooks(namePatterns: Set<String>) : DefaultApolloCompilerKotlinHooks

Adds the internal modifier to types matching the given names.

Parameters

namePatterns

a set of regex patterns to match type names against. If a type name (including its package) matches, it will be made internal. Examples:

  • to match all classes, use ".*"

  • to match classes under a specific package, use "com\\.example\\.subpackage\\..*"

  • to match a specific operation, use "com\\.example\\.MyQuery"

Constructors

Link copied to clipboard
fun AddInternalCompilerHooks(vararg namePatterns: String)
Link copied to clipboard
fun AddInternalCompilerHooks(namePatterns: Set<String>)

Functions

Link copied to clipboard
open override fun overrideResolvedType(key: ResolverKey, resolved: ClassName?): ClassName?

Allows overriding the names of classes that are referenced in the generated code.

Link copied to clipboard

Allows processing the generated files right before they are written to the disk.

Properties

Link copied to clipboard
open override val version: String

The version of this ApolloCompilerKotlinHooks.