Ko Class And Object Declaration
Represents a Kotlin class or object declaration.
Inheritors
Properties
List of annotations.
The parent of the declaration.
File containing the declaration.
Fully qualified name of the declaration.
Determines whatever declaration has data
modifier.
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.
The init blocks of the declaration.
Determines whatever the declaration is defined at top level.
Documentation of the declaration.
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 init blocks.
The number of modifiers.
Package of the declaration.
The direct parent class of the declaration.
Project file path of the declaration or root project path of the file.
The declaration's source set name.
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 external parents 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 init blocks 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 parent classes that satisfies the specified predicate present in the declaration.
Returns the number of parent interfaces that satisfies the specified predicate present in the declaration.
Returns the number of parents that satisfies the specified predicate present in the declaration.
Returns the number of properties that satisfies the specified predicate present in the declaration.
The declarations present in the declaration.
The declarations of type T present in the declaration.
List containing external parents of 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 external parents that satisfy the provided predicate.
Determines whether the declaration has external parents with all the specified KClass
type.
Determines whether the declaration has all functions that satisfy the provided predicate.
Determines whether the declaration has all init blocks that satisfy the provided 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 specified modifiers.
Determines whether the declaration has all objects that satisfy the provided predicate.
Determines whether the declaration has all parent classes that satisfy the provided predicate.
Determines whether the declaration has parent classes with all the specified KClass
type.
Determines whether the declaration has all parent interfaces that satisfy the provided predicate.
Determines whether the declaration has parent interfaces with all the specified KClass
type.
Determines whether the declaration has all parents (parent classes and parent interfaces) that satisfy the provided predicate.
Determines whether the declaration has parents with all the specified KClass
type.
Determines whether the declaration has all properties 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 whether the declaration has at least one external parent that satisfies the provided predicate.
Determines whether the declaration has at least one external parent of the specified KClass
type.
Returns true
if declaration represents the type of T. The external parent is a parent defined outside the project codebase (defined inside external library).
Determines whatever declaration has any external parents. The external parent is a parent defined outside project codebase (defined inside external library).
Determines whether the declaration has parents interface defined project codebase (external == false)
Determines whether the declaration has at least one external parent whose name matches any of the specified.
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 whether the declaration has at least one init block that satisfies the provided predicate.
Determines whatever declaration has init blocks.
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.
Determines whether the declaration has at least one specified modifier.
Determines whatever the declaration has modifiers.
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 whether declaration has a direct parent class.
Determines whether the declaration has a specified parent class. If indirectParents
is set to true
, it verifies if there's at least one parent class that satisfies the provided predicate.
Determines whatever declaration has any parent class.
Determines whether the declaration has parent classes with all the specified names.
Determines whether the declaration has a parent class of the specified Kotlin class. If indirectParents
is set to true
, it verifies if there's at least one parent class that matches.
Returns true
if declaration represents the type of T.
Determines whether the declaration has a parent class whose name matches any of the specified names. If indirectParents
is set to true
, it verifies if there's at least one parent class that matches.
Determines whether the declaration has at least one parent interface that satisfies the provided predicate.
Determines whether the declaration has at least one parent interface of the specified KClass
type.
Returns true
if declaration represents the type of T.
Determines whatever declaration has any parent interface.
Determines whether the declaration has parent interfaces defined with all the specified names.
Determines whether the declaration has at least one parent interface whose name matches any of the specified names.
Determines whether the declaration has at least one parent of the specified KClass
type.
Returns true
if declaration represents the type of T.
Determines whatever declaration has any parent (parent class and parent interfaces).
Determines whether the declaration has parents (parent classes and parent interfaces) with all the specified names.
Determines whether the declaration has at least one parent (parent class and parent interfaces) whose name matches any of the specified names.
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.
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 external parents.
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 parent classes.
Returns the number of parent interfaces.
Returns the number of parents.
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 parent classes of the declaration.
The parent interfaces of the declaration.
The parents (parent class and parent interfaces) of the declaration.
The properties present in the declaration.
Determines whatever this declaration represents the specified type.
Returns true
if declaration represents the type of T.
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.