TType Class

Provides static methods to get RTTI information of a type.

Namespace: Spring.Reflection
TObject
  Spring.TType
    Spring.Reflection.TType
type
 TType = class(Spring.TType)
 end;

The TType type exposes the following members.

Show:
 NameDescription
Create@

Represents the static constructor of the TType class.

Destroy@

Represents the static destructor of the TType class.

Top
Show:
 NameDescription
Context

Represents property Context. (Inherited from TType.)

Types

Represents property Types.

Top
Show:
 NameDescription
FindType(string)

Represents method FindType(string).

GetFullName(PTypeInfo)

Overloaded. Represents method GetFullName(PTypeInfo).

GetFullName<T>

Overloaded. Represents method GetFullName<T>.

GetType(Pointer)

Overloaded. Represents method GetType(Pointer). (Inherited from TType.)

GetType(TClass)

Overloaded. Represents method GetType(TClass). (Inherited from TType.)

GetType<T>

Overloaded. Represents method GetType<T>. (Inherited from TType.)

GetTypes

Represents method GetTypes.

HasWeakRef<T>

Represents method HasWeakRef<T>. (Inherited from TType.)

IsAssignable(PTypeInfo,PTypeInfo)

Returns true if the typeFrom is assignable to the typeTo.

IsDelegate(PTypeInfo)

Overloaded. Returns True if the typeInfo is a delegate type.

IsManaged<T>

Represents method IsManaged<T>. (Inherited from TType.)

Kind<T>

Represents method Kind<T>. (Inherited from TType.)

SetFieldValue(TObject,string,TValue)

Represents method SetFieldValue(TObject,string,TValue).

SetMemberValue(TObject,string,TValue)

Represents method SetMemberValue(TObject,string,TValue).

SetPropertyValue(TObject,string,TValue)

Represents method SetPropertyValue(TObject,string,TValue).

TryGetInterfaceType(TGUID,TRttiInterfaceType)

Represents method TryGetInterfaceType(TGUID,TRttiInterfaceType).

TryGetType(PTypeInfo,TRttiType)

Represents method TryGetType(PTypeInfo,TRttiType).

Top
Show:
 NameDescription
fInterfaceTypes

Represents field fInterfaceTypes.

fSection

Represents field fSection.

Top

Notes to Callers

When using this class, a shared instance of the TRttiContext class will be kept, which will make all instances of RTTI types live during the lifetime.