Ko Type Argument Declaration
Represents a type argument declaration.
Properties
Determines whatever the declaration has in
modifier.
Determines whatever the declaration has out
modifier.
Determines whatever type is function type.
Determines whatever type is generic type.
Determines whether the source declaration is a star projection. A star projection is a placeholder that represents any type in a generic context, allowing for flexible type constraints.
Text of the declaration with the location (file path, line and column).
List of modifiers.
The number of modifiers.
The number of parameters for the function type.
The number of parameters for the function type.
The number of type arguments.
Represents the parameters of the function type.
Represents the parameters of the function type.
Project file path of the declaration or root project path of the file.
Represents the return type of the function type.
Represents the source declaration associated with this type.
A list of type arguments associated with this declaration, if any. If there are no type arguments, this returns null
.
Functions
Counts the number of parameters that match the given predicate.
Counts the number of parameter types that match the given predicate.
Counts the number of type arguments that match the given predicate.
Determines whether the declaration has all specified modifiers.
Checks if all parameters match the given predicate.
Checks if all parameter types match the given 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 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.
Checks if any parameter matches the given predicate.
Checks if any parameter type matches the given predicate.
Checks if the return type matches the given predicate.
Checks if the return type matches the specified class.
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 file path or file reside in path.