AddInternalCompilerHooks
class AddInternalCompilerHooks(namePatterns: Set<String>) : DefaultApolloCompilerKotlinHooks
Content copied to clipboard
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
Functions
Link copied to clipboard
open override fun overrideResolvedType(key: ResolverKey, resolved: ClassName?): ClassName?
Content copied to clipboard
Allows overriding the names of classes that are referenced in the generated code.
Link copied to clipboard
open override fun postProcessFiles(files: Collection<ApolloCompilerKotlinHooks.FileInfo>): Collection<ApolloCompilerKotlinHooks.FileInfo>
Content copied to clipboard
Allows processing the generated files right before they are written to the disk.
Properties
Link copied to clipboard
The version of this ApolloCompilerKotlinHooks.