TField
Type member field
Methods
Method IsReadOnly:Int()
Determine if field is read-only
Method Get:Object(obj:Object)
Get field value
For reference types, this returns the object. For structs, it returns a TBoxedValue. For other value types, it returns a string representation of the value.
Method GetBoxed:Object(obj:Object)
Get field value
Like Get, but always returns a TBoxedValue for value types instead of converting the value to a string.
Method GetByte:Byte( obj:Object )
Get field value as Byte
Method GetShort:Short( obj:Object )
Get field value as Short
Method GetInt:Int( obj:Object )
Get field value as Int
Method GetUInt:UInt( obj:Object )
Get field value as UInt
Method GetLong:Long( obj:Object )
Get field value as Long
Method GetULong:ULong( obj:Object )
Get field value as ULong
Method GetSizeT:Size_T( obj:Object )
Get field value as Size_T
Method GetFloat:Float( obj:Object )
Get field value as Float
Method GetDouble:Double( obj:Object )
Get field value as Double
Method GetLongInt:LongInt( obj:Object )
Get field value as LongInt
Method GetULongInt:ULongInt( obj:Object )
Get field value as ULongInt
Method GetString:String( obj:Object )
Get field value as String
Method GetPointer:Byte Ptr(obj:Object)
Get field value as Byte Ptr
Method GetStruct(obj:Object, targetPtr:Byte Ptr)
Get field value as struct
targetPtr must be a pointer to a variable of the correct struct type.
Method GetEnumAsString:String( obj:Object )
Get enum field value as String
Returns the name of the enum value. If the field value does not correspond to any enum value, throws an error.
Method Set(obj:Object, value:Object)
Set Field value
Method Set( obj:Object,value:Byte )
Set field value from Byte
Method Set( obj:Object,value:Short )
Set field value from Short
Method Set( obj:Object,value:Int )
Set field value from Int
Method Set( obj:Object,value:UInt )
Set field value from UInt
Method Set( obj:Object,value:Long )
Set field value from Long
Method Set( obj:Object,value:ULong )
Set field value from ULong
Method Set( obj:Object,value:Size_T )
Set field value from Size_T
Method Set( obj:Object,value:Float )
Set field value from Float
Method Set( obj:Object,value:Double )
Set field value from Double
Method Set( obj:Object,value:LongInt )
Set field value from LongInt
Method Set( obj:Object,value:ULongInt )
Set field value from ULongInt
Method SetObject( obj:Object,value:Object )
Set field value from Object
Method SetByte( obj:Object,value:Byte )
Set field value from Byte
Method SetShort( obj:Object,value:Short )
Set field value from Short
Method SetInt( obj:Object,value:Int )
Set field value from Int
Method SetUInt( obj:Object,value:UInt )
Set field value from UInt
Method SetLong( obj:Object,value:Long )
Set field value from Long
Method SetULong( obj:Object,value:ULong )
Set field value from ULong
Method SetSizet( obj:Object,value:Size_T )
Set field value from Size_T
Method SetFloat( obj:Object,value:Float )
Set field value from Float
Method SetDouble( obj:Object,value:Double )
Set field value from Double
Method SetLongInt( obj:Object,value:LongInt )
Set field value from LongInt
Method SetULongInt( obj:Object,value:ULongInt )
Set field value from ULongInt
Method SetString( obj:Object,value:String )
Set field value from String
Method SetPointer(obj:Object, value:Byte Ptr)
Set field value from Byte Ptr
Method SetStruct(obj:Object, structPtr:Byte Ptr)
Set field value from struct
structPtr must be a pointer to a variable of the correct struct type.
Method SetEnum(obj:Object, value:String)
Set field value from enum name
value must be a valid name for an enum value of the field's enum type.
Method FieldPtr:Byte Ptr(obj:Object)
Get pointer to the field
Method Invoke:Object(obj:Object, args:Object[] = Null)
Invoke field value
Field type must be a function pointer.
