Package-level declarations
Types
A simple holder class for containing originating KSFiles, which are used by KSP to inform its incremental processing.
A resolver for enclosing declarations' type parameters. Parent declarations can be anything with generics that child nodes declare as defined by KSType.arguments.
Functions
Adds the given ksFile to this builder's tags for use with originatingKSFiles.
Returns a KSP Dependencies component of this FileSpec with the given originatingKSFiles, intended to be used in tandem with writeTo.
Returns the list of all files added to the contained TypeSpecs, PropertySpecs, FunSpecs, or TypeAliasSpecs contained in this spec.
Returns this spec's originating KSFiles for use with incremental processing.
Returns an AnnotationSpec representation of this KSAnnotation instance.
Returns the ClassName representation of this KSClassDeclaration.
Returns the ClassName representation of this KSType IFF it's a KSClassDeclaration or KSTypeAlias.
Returns the ClassName representation of this KSTypeAlias.
Returns the ClassName representation of this KSType IFF it's a KSClassDeclaration or KSTypeAlias.
Returns the KModifier representation of this Modifier or null if this is a Java-only modifier (i.e. prefixed with JAVA_
), which do not have obvious KModifier analogues.
Returns the KModifier representation of this visibility or null if this is JAVA_PACKAGE or LOCAL (which do not have obvious KModifier alternatives).
Returns the TypeName representation of this KSType.
Returns a TypeName representation of this KSTypeArgument.
Returns a TypeName representation of this KSTypeReference.
Returns a TypeParameterResolver for this list of KSTypeParameters for use with enclosed declarations.
Returns a TypeVariableName representation of this KSTypeParameter.
Writes this FileSpec to a given codeGenerator with the given dependencies.
Writes this FileSpec to a given codeGenerator with the given originatingKSFiles.