Ko Primary Constructor Declaration
Represents a Kotlin primary constructor declaration.
Properties
List of annotations.
The parent of the declaration.
File containing the declaration.
Determines whatever the declaration has internal modifier.
Determines whatever the declaration has private modifier.
Determines whatever the declaration has protected modifier.
Determines whatever the declaration has public modifier.
Determines whatever the declaration has public or no visibility modifier.
Text of the declaration with the location (file path, line and column).
List of modifiers.
The declaration's module name.
The number of annotations.
The number of modifiers.
The number of parameters.
Package of the declaration.
Parameters of the declaration.
Project file path of the declaration or root project path of the file.
The declaration's source set name.
Functions
Returns the number of annotations that satisfies the specified predicate present in the declaration.
Returns the number of parameters that satisfies the specified predicate 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 specified modifiers.
Determines whether the declaration has all parameters 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 whether the declaration has at least one specified modifier.
Determines whatever the declaration has modifiers.
Determines whether the declaration has at least one parameter that satisfies the provided predicate.
Determines whatever declaration has any parameter.
Determines whether the declaration has parameters with all the specified names.
Determines whether the declaration has at least one parameter 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 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.