Ko Parent Declaration
Represents a Kotlin parent declaration.
Properties
List of annotations.
List of arguments.
The parent of the declaration.
File containing the declaration.
Name of the delegate.
Text of the declaration with the location (file path, line and column).
The declaration's module name.
The number of annotations.
The number of arguments.
The number of type arguments.
Package of the declaration.
Project file path of the declaration or root project path of the file.
Represents the source declaration associated with this type.
The declaration's source set name.
A list of type arguments associated with this declaration, if any. If there are no type arguments, this returns null
.
Functions
Returns the number of annotations that satisfies the specified predicate present in the declaration.
Returns the number of arguments that satisfies the specified predicate present in the declaration.
Counts the number of type arguments that match the given predicate.
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 arguments that satisfy the provided predicate.
Checks if all type arguments match the given predicate.
Checks if all type arguments match the specified class.
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 whether the declaration has at least one argument that satisfies the provided predicate.
Determines whatever the declaration has arguments.
Determines whether the declaration has arguments with all the specified names.
Determines whether the declaration has at least one argument whose name matches any of the specified names.
Determines whatever declaration has a delegate with given name.
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 type has a specified source declaration.
Whether type has a source declaration of the specified Kotlin class.
Text of the declaration containing text.
Text of the declaration with suffix.
Text of the declaration matching regex.
Text of the declaration with prefix.
Checks if any type argument matches the given predicate.
Checks if any type argument is of the specified class.
Determines whatever the declaration has type arguments.
Checks if all type arguments have one of the specified names.
Checks if any type argument has one of the specified names.
Determines whatever declaration reside in module.
Determines whatever the declaration resides in a package.
Determines whatever declaration reside in file path or file reside in path.
Determines whatever declaration reside in source set.
Determines whatever the declaration resides outside a package.