TypeReference

interface TypeReference

A type reference

Properties

Link copied to clipboard
abstract val isOptional: Boolean

Is true if this type reference is optional, meaning it can be null

Link copied to clipboard

Is true if this type reference or underlying type is optional, meaning it can be null at runtime This is different from isOptional in that it will return true for an alias that points to an optional type

Link copied to clipboard

The pattern constraints placed on this type, if any

Link copied to clipboard

The range constraints placed on this type, if any

Link copied to clipboard

The runtime pattern constraints placed on this type, if any. Will differ from patternConstraint if this is an alias

Link copied to clipboard

The runtime range constraints placed on this type, if any. Will differ from rangeConstraint if this is an alias

Link copied to clipboard

The runtime size constraints placed on this type, if any. Will differ from sizeConstraint if this is an alias

Link copied to clipboard
abstract val runtimeType: Type

The runtime type this reference points to, could be different from type if this is an alias

Link copied to clipboard

The runtime value constraints placed on this type, if any. Will differ from valueConstraint if this is an alias

Link copied to clipboard

The size constraints placed on this type, if any

Link copied to clipboard
abstract val type: Type

The type this reference points to

Link copied to clipboard

The value constraints placed on this type, if any