Declared Type Name
A fully-qualified type name for top-level and member types.
Constructors
Returns a type name created from the given parts. For example, calling this with module name "Swift"
and simple names "Array"
, "Iterator"
yields Swift.Array.Iterator
.
Types
Functions
Returns the enclosing type, like Map for Map.Entry
. Returns null if this type is not nested in another type.
Returns a new DeclaredTypeName instance for the specified name
as nested inside this type.
Returns a new DeclaredTypeName instance for the specified names
as nested inside this type.
Returns a type that shares the same enclosing package or type. If this type is enclosed by another type, this is equivalent to enclosingTypeName().nestedType(name)
. Otherwise it is equivalent to get(packageName(), name)
.
Returns the top type in this nesting group. Equivalent to chained calls to DeclaredTypeName.enclosingTypeName until the result's enclosing type is null.