Class Name
A fully-qualified class name for top-level and member classes.
Constructors
Types
Functions
Callable reference to the constructor of this class. Emits the enclosing class if one exists, followed by the reference operator ::
, followed by either simpleName or the fully-qualified name if this is a top-level class.
Returns the enclosing class, like Map
for Map.Entry
. Returns null if this class is not nested in another class.
Returns a new ClassName instance for the specified name
as nested inside this class.
Fully qualified name using .
to separate package from the top level class name, and $
to separate nested classes, like kotlin.collections.Map$Entry
.
Returns the tag attached with type as a key, or null if no tag is attached with that key.
Returns the tag attached with type as a key, or null if no tag is attached with that key.
Returns the top class in this nesting group. Equivalent to chained calls to ClassName.enclosingClassName until the result's enclosing class is null.
Properties
Extensions
Returns a parameterized type, applying typeArguments
to this
.
Returns a parameterized type, applying typeArgument
to this
.