-
- All Implemented Interfaces:
-
com.google.devtools.ksp.symbol.KSAnnotated,com.google.devtools.ksp.symbol.KSDeclarationContainer,com.google.devtools.ksp.symbol.KSNode
public interface KSFile implements KSDeclarationContainer, KSAnnotated
A Kotlin source file
-
-
Method Summary
Modifier and Type Method Description abstract KSNamegetPackageName()The KSName representation of this file's package. abstract StringgetFileName()File name of this source file. abstract StringgetFilePath()Absolute path of this source file. abstract Sequence<KSDeclaration>getDeclarations()Declarations that are lexically declared inside the current container. abstract OrigingetOrigin()abstract LocationgetLocation()abstract KSNodegetParent()abstract Sequence<KSAnnotation>getAnnotations()All annotations on this symbol. -
-
Method Detail
-
getPackageName
abstract KSName getPackageName()
The KSName representation of this file's package.
-
getFileName
abstract String getFileName()
File name of this source file.
-
getFilePath
abstract String getFilePath()
Absolute path of this source file.
-
getDeclarations
abstract Sequence<KSDeclaration> getDeclarations()
Declarations that are lexically declared inside the current container.
-
getLocation
abstract Location getLocation()
-
getAnnotations
abstract Sequence<KSAnnotation> getAnnotations()
All annotations on this symbol.
-
-
-
-