class TypeRef
source · line 41public
public class TypeRef public constructor(
private val identity: String,
/**
* Human-readable type spelling; do not use it as an identity key.
*/
public val displayName: String,
/**
* The declaring nominal identity when the type has one.
*/
public val nominal: Option<NominalRef>,
/**
* The concrete generic argument types, in declaration order.
*/
public val arguments: Array<TypeRef>,
private val describeBody: () -> TypeDescription
) : Equals<TypeRef>
- Supertype
Equals<TypeRef>
A concrete type identity with a display name and lazily available description. Identity comparison is independent of display spelling.
function equals
source · line 60public
public override operator fun equals(other: TypeRef): Boolean
- Overrides
equals· Equals
Compares concrete type identities, including generic arguments.
parameter other
source · line 60public
other: TypeRef
property nominal
source · line 50public
public val nominal: Option<NominalRef>
get: public read-only
The declaring nominal identity when the type has one.
property displayName
source · line 46public
public val displayName: String
get: public read-only
Human-readable type spelling; do not use it as an identity key.
function describe
source · line 65public
public fun describe(): TypeDescription
Evaluates the type's description provider.
constructor constructor
source · line 41public
constructor(private val identity: String, public val displayName: String, public val nominal: Option<NominalRef>, public val arguments: Array<TypeRef>, private val describeBody: () -> TypeDescription)
parameter arguments
source · line 54public
public val arguments: Array<TypeRef>
parameter displayName
source · line 46public
public val displayName: String
parameter describeBody
source · line 55public
private val describeBody: () -> TypeDescription
parameter identity
source · line 42public
private val identity: String
parameter nominal
source · line 50public
public val nominal: Option<NominalRef>
property arguments
source · line 54public
public val arguments: Array<TypeRef>
get: public read-only
The concrete generic argument types, in declaration order.