TType

Abstract base class for types that are used in a type system.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TBaseObjectA base class for objects that can be used instead of TObject.
3TReferenceCountedObjectObject that keeps track of the number of times it is referenced from other objects
4TValueBase class for an immutable object that stores a value of a certain TType.
5TType

Source

Type_.pas (30)

Description

Models a type as used in a formal type system. In this sense a type represents a (possibly infinite) set of possible values. This set is called the value set of a type. Using the set theoretic approach ensures a very sound type system where type relations are clear and correct. The subtype relation for types for instance cleanly maps onto the subset relation for sets. That is, type A is a subtype of type B when the value set of type A is a subset of the value set of type B.

Methods

ScopeVisibilityResultNameDescription
InstanceprotectedTBooleanIsValueSubtype(Type_: TType)
InstancepublicTStorageTypeGetStorageType()
InstancepublicTTypeGetDecoratedType()
InstancepublicTDocumentNodeGetCaption()
InstancepublicTBooleanIsNullable()
InstancepublicTBooleanIsNumeric()
InstancepublicTBooleanCheckValue(Messages: TList<TDocumentNode>; Value: TValue)
InstancepublicTBooleanIsValidValue(Messages: TList<TDocumentNode>; Value: TValue)
InstancepublicTBooleanIsValidValue(Value: TValue)
InstancepublicTComparator<TValue>GetValueComparator()
InstancepublicTBooleanIsEquivalentTo(OtherType: TType)
InstancepublicTBooleanIsSupertypeOf(OtherType: TType)
InstancepublicTBooleanOverlapsWith(OtherType: TType)
InstancepublicTTypeCommonType(OtherType: TType)
InstancepublicTBooleanSharesTypePath(OtherType: TType)
InstancepublicTBooleanIsProperSupertypeOf(OtherType: TType)
InstancepublicTBooleanIsSubtypeOf(OtherType: TType)
InstancepublicTBooleanIsProperSubtypeOf(OtherType: TType)
InstancepublicTTypeOptional()