TTypeId: Methods Functions  


Methods

NameGet name of type
MetaDataGet type meta data
SuperTypeGet super type
ArrayTypeGet array type
ElementTypeGet element type
ExtendsTypeDetermine if type extends a type
DerivedTypesGet list of derived types
NewObjectCreate a new object
FieldsGet list of fields
MethodsGet list of methods
FindFieldFind a field by name
FindMethodFind a method by name
EnumFieldsEnumerate all fields
EnumMethodsEnumerate all methods
NewArrayCreate a new array
ArrayLengthGet array length
ArrayDimensionsGet the number of dimensions
GetArrayElementGet an array element
SetArrayElementSet an array element

Functions

ForNameGet Type by name
ForObjectGet Type by object
EnumTypesGet list of all types

Method reference

Method Name$()
DescriptionGet name of type

Method MetaData$( key$="" )
DescriptionGet type meta data

Method SuperType:TTypeId()
DescriptionGet super type

Method ArrayType:TTypeId(dims:Int = 1)
DescriptionGet array type

Method ElementType:TTypeId()
DescriptionGet element type

Method ExtendsType( typeId:TTypeId )
DescriptionDetermine if type extends a type

Method DerivedTypes:TList()
DescriptionGet list of derived types

Method NewObject:Object()
DescriptionCreate a new object

Method Fields:TList()
DescriptionGet list of fields
InformationOnly returns fields declared in this type, not in super types.

Method Methods:TList()
DescriptionGet list of methods
InformationOnly returns methods declared in this type, not in super types.

Method FindField:TField( name$ )
DescriptionFind a field by name
InformationSearchs type hierarchy for field called name.

Method FindMethod:TMethod( name$ )
DescriptionFind a method by name
InformationSearchs type hierarchy for method called name.

Method EnumFields:TList( list:TList=Null )
DescriptionEnumerate all fields
InformationReturns a list of all fields in type hierarchy

Method EnumMethods:TList( list:TList=Null )
DescriptionEnumerate all methods
InformationReturns a list of all methods in type hierarchy - TO DO: handle overrides!

Method NewArray:Object( length, dims:Int[] = Null )
DescriptionCreate a new array

Method ArrayLength( array:Object, dim:Int = 0 )
DescriptionGet array length

Method ArrayDimensions:Int( array:Object )
DescriptionGet the number of dimensions

Method GetArrayElement:Object( array:Object,index )
DescriptionGet an array element

Method SetArrayElement( array:Object,index,value:Object )
DescriptionSet an array element

Function reference

Function ForName:TTypeId( name$ )
DescriptionGet Type by name

Function ForObject:TTypeId( obj:Object )
DescriptionGet Type by object

Function EnumTypes:TList()
DescriptionGet list of all types