Ko File Declaration
Represents a file declaration.
Properties
List of annotations.
Determines whatever the package matches the directory structure (file path).
List of import aliases.
List of imports.
The declaration's module name.
The name with file extension of the declaration.
The number of annotations.
The number of import aliases.
The number of imports.
The number of type aliases.
Package of the declaration.
Project file path of the declaration or root project path of the file.
The declaration's source set name.
List of type aliases.
Functions
The classes and interfaces present in the declaration.
The classes, interfaces and objects present in the declaration.
The classes and objects present in the declaration.
Returns the number of annotations that satisfies the specified predicate present in the declaration.
Returns the number of classes that satisfies the specified predicate present in the declaration.
Returns the number of classes and interfaces that satisfies the specified predicate present in the declaration.
Returns the number of classes, interfaces and objects that satisfies the specified predicate present in the declaration.
Returns the number of classes and objects that satisfies the specified predicate present in the declaration.
Returns the number of declarations that satisfies the specified predicate present in the declaration.
Returns the number of functions that satisfies the specified predicate present in the declaration.
Returns the number of import aliases that satisfies the specified predicate present in the declaration.
Returns the number of imports that satisfies the specified predicate present in the declaration.
Returns the number of interfaces that satisfies the specified predicate present in the declaration.
Returns the number of interfaces and objects that satisfies the specified predicate present in the declaration.
Returns the number of objects that satisfies the specified predicate present in the declaration.
Returns the number of properties that satisfies the specified predicate present in the declaration.
Returns the number of type aliases that satisfies the specified predicate present in the declaration.
The declarations present in the declaration.
The declarations of type T present in the declaration.
Determines whether the declaration has all annotations that satisfy the provided predicate.
Determines whether the declaration has annotations with all the specified KClass
type.
Determines whether the declaration has all classes that satisfy the provided predicate.
Determines whether the declaration has all classes and interfaces that satisfy the provided predicate.
Determines whether the declaration has all classes, interfaces and objects that satisfy the provided predicate.
Determines whether the declaration has all classes and objects that satisfy the provided predicate.
Determines whether the declaration has all declarations that satisfy the provided predicate.
Determines whether the declaration has all functions that satisfy the provided predicate.
Determines whether the declaration has all import aliases that satisfy the provided predicate.
Determines whatever the declaration has all imports with the specified predicate.
Determines whether the declaration has all interfaces that satisfy the provided predicate.
Determines whether the declaration has all interfaces and objects that satisfy the provided predicate.
Determines whether the declaration has all objects that satisfy the provided predicate.
Determines whether the declaration has all properties that satisfy the provided predicate.
Determines whether the declaration has all type aliases that satisfy the provided predicate.
Determines whether the declaration has at least one annotation that satisfies the provided predicate.
Determines whether the declaration has at least one annotation of the specified KClass
type.
Returns true
if declaration represents the type of T.
Determines whatever declaration has any annotation.
Determines whether the declaration has annotations with all the specified names.
Determines whether the declaration has at least one annotation whose name matches any of the specified names.
Determines whatever the declaration has classes.
Determines whether the declaration has classes, interfaces and objects with all the specified names.
Determines whether the declaration has classes and interfaces with all the specified names.
Determines whether the declaration has classes and objects with all the specified names.
Determines whatever the declaration has classes and interfaces.
Determines whatever the declaration has classes, interfaces and objects.
Determines whatever the declaration has classes and objects.
Determines whether the declaration has classes with all the specified names.
Determines whether the declaration has at least one class or interface that satisfies the provided predicate.
Determines whether the declaration has at least one class, interface or object that satisfies the provided predicate.
Determines whether the declaration has at least one class, interface or object whose name matches any of the specified names.
Determines whether the declaration has at least one class or interface whose name matches any of the specified names.
Determines whether the declaration has at least one class or object that satisfies the provided predicate.
Determines whether the declaration has at least one class or object whose name matches any of the specified names.
Determines whether the declaration has at least one class whose name matches any of the specified names.
Determines whether the declaration has at least one declaration that satisfies the provided predicate.
Determines whatever the declaration has declarations.
Determines whatever declaration has file extension.
Determines whether the declaration has at least one function that satisfies the provided predicate.
Determines whatever the declaration has functions.
Determines whether the declaration has functions with all the specified names.
Determines whether the declaration has at least one function whose name matches any of the specified names.
Determines whatever the declaration has any import with the specified predicate.
Determines whether the declaration has at least one import alias that satisfies the provided predicate.
Determines whatever declaration has any import alias.
Determines whether the declaration has import aliases with all the specified names.
Determines whether the declaration has at least one import alias whose name matches any of the specified names.
Determines whatever the declaration has any import.
Determines whether the declaration has imports with all the specified names.
Determines whether the declaration has at least one import whose name matches any of the specified names.
Determines whether the declaration has at least one interface that satisfies the provided predicate.
Determines whether the declaration has at least one interface or object that satisfies the provided predicate.
Determines whether the declaration has at least one interface or object whose name matches any of the specified names.
Determines whatever the declaration has interfaces.
Determines whether the declaration has interfaces and objects with all the specified names.
Determines whatever the declaration has interfaces and objects.
Determines whether the declaration has interfaces with all the specified names.
Determines whether the declaration has at least one interface whose name matches any of the specified names.
Name of the declaration containing text.
Name of the declaration with suffix.
Name of the declaration matching regex.
Name of the declaration with prefix.
Determines whatever the declaration has objects.
Determines whether the declaration has objects with all the specified names.
Determines whether the declaration has at least one object whose name matches any of the specified names.
Determines whatever the declaration has package.
Determines whatever the declaration has properties.
Determines whether the declaration has properties with all the specified names.
Determines whether the declaration has at least one property that satisfies the provided predicate.
Determines whether the declaration has at least one property whose name matches any of the specified names.
Text of the declaration containing text.
Text of the declaration with suffix.
Text of the declaration matching regex.
Text of the declaration with prefix.
Determines whether the declaration has at least one type alias that satisfies the provided predicate.
Determines whatever declaration has any type alias.
Determines whether the declaration has type aliases with all the specified names.
Determines whether the declaration has at least one type alias whose name matches any of the specified names.
The interfaces present in the declaration.
The interfaces and objects present in the declaration.
Returns the number of classes present in the declaration.
Returns the number of classes and interfaces present in the declaration.
Returns the number of classes, interfaces and objects present in the declaration.
Returns the number of classes and objects present in the declaration.
Returns the number of declarations present in the declaration.
Returns the number of functions present in the declaration.
Returns the number of interfaces present in the declaration.
Returns the number of interfaces and objects present in the declaration.
Returns the number of declarations with internal visibility modifier present in the declaration.
Returns the number of objects present in the declaration.
Returns the number of declarations with private visibility modifier present in the declaration.
Returns the number of properties present in the declaration.
Returns the number of declarations with protected visibility modifier present in the declaration.
Returns the number of declarations with public visibility modifier present in the declaration.
Returns the number of declarations with public or default visibility modifier present in the declaration.
The objects present in the declaration.
The properties present in the declaration.
Determines whatever declaration reside in module.
Determines whatever declaration reside in file path or file reside in path.
Determines whatever declaration reside in source set.