Deserializer
Overview
Abstract base class for deserializers on Island.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
constructor protected
constructor
Deserializer()
init()
Deserializer()
Sub New()
EndList virtual abstract
Returns true if this is the end of a list, and ends the list. False if there's more stuff to read
method EndList
void EndList()
func EndList()
void EndList()
Sub EndList()
EndObject virtual abstract
Ends an object
method EndObject
void EndObject()
func EndObject()
void EndObject()
Sub EndObject()
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
Read
Reads a value of a given type. This is called by Read<T> to read the actual data.
method Read(aType: Type; aDT: DeserializerType; aDest: Object): Object
Object Read(Type aType, DeserializerType aDT, Object aDest)
func Read(_ aType: Type, _ aDT: DeserializerType, _ aDest: Object) -> Object
Object Read(Type aType, DeserializerType aDT, Object aDest)
Function Read(aType As Type, aDT As DeserializerType, aDest As Object) As Object
Parameters:
- aType:
- aDT:
- aDest:
Read<T>
Deserializes a value of type T.
method Read<T>: T
T Read<T>()
func Read<T>() -> T
T Read<T>()
Function Read<T>() As T
ReaderProvidesNameAndType protected virtual
If true, the reader provides a name and type for a value.
property ReaderProvidesNameAndType: Boolean read;
Boolean ReaderProvidesNameAndType { get; }
var ReaderProvidesNameAndType: Boolean { get{} }
Boolean ReaderProvidesNameAndType { __get; }
ReadOnly Property ReaderProvidesNameAndType() As Boolean
ReadNext protected virtual
method ReadNext(out aName: String; out aType: DeserializerType)
void ReadNext(out String aName, out DeserializerType aType)
func ReadNext(_ aName: String, _ aType: DeserializerType)
void ReadNext(__out String aName, __out DeserializerType aType)
Sub ReadNext(<OutAttribute> ByRef aName As String, <OutAttribute> ByRef aType As DeserializerType)
Parameters:
- aName:
- aType:
ReadValue virtual abstract
Reads a value.
method ReadValue: Object
Object ReadValue()
func ReadValue() -> Object
Object ReadValue()
Function ReadValue() As Object
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
SelectListElement virtual abstract
Called when parsing the start ofa lsit element.
method SelectListElement(aIndex: Int32; out aHint: Type): DeserializerType
DeserializerType SelectListElement(Int32 aIndex, out Type aHint)
func SelectListElement(_ aIndex: Int32, _ aHint: Type) -> DeserializerType
DeserializerType SelectListElement(Int32 aIndex, __out Type aHint)
Function SelectListElement(aIndex As Int32, <OutAttribute> ByRef aHint As Type) As DeserializerType
Parameters:
- aIndex:
- aHint:
SelectProperty virtual abstract
Called when parsing the start of a value.
method SelectProperty(aProp: PropertyInfo; out aHint: Type): DeserializerType
DeserializerType SelectProperty(PropertyInfo aProp, out Type aHint)
func SelectProperty(_ aProp: PropertyInfo, _ aHint: Type) -> DeserializerType
DeserializerType SelectProperty(PropertyInfo aProp, __out Type aHint)
Function SelectProperty(aProp As PropertyInfo, <OutAttribute> ByRef aHint As Type) As DeserializerType
Parameters:
- aProp:
- aHint:
Skip protected virtual
method Skip
void Skip()
func Skip()
void Skip()
Sub Skip()
StartList virtual
Trigger start of list
method StartList
void StartList()
func StartList()
void StartList()
Sub StartList()
StartObject virtual
Trigger start of Object
method StartObject
void StartObject()
func StartObject()
void StartObject()
Sub StartObject()
ToString virtual (declared in Object)
Gets the string representation of this method.
ReaderProvidesNameAndType protected virtual
If true, the reader provides a name and type for a value.
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
constructor protected
constructor
Deserializer()
init()
Deserializer()
Sub New()
EndList virtual abstract
Returns true if this is the end of a list, and ends the list. False if there's more stuff to read
method EndList
void EndList()
func EndList()
void EndList()
Sub EndList()
EndObject virtual abstract
Ends an object
method EndObject
void EndObject()
func EndObject()
void EndObject()
Sub EndObject()
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
Read
Reads a value of a given type. This is called by Read<T> to read the actual data.
method Read(aType: Type; aDT: DeserializerType; aDest: Object): Object
Object Read(Type aType, DeserializerType aDT, Object aDest)
func Read(_ aType: Type, _ aDT: DeserializerType, _ aDest: Object) -> Object
Object Read(Type aType, DeserializerType aDT, Object aDest)
Function Read(aType As Type, aDT As DeserializerType, aDest As Object) As Object
Parameters:
- aType:
- aDT:
- aDest:
Read<T>
Deserializes a value of type T.
method Read<T>: T
T Read<T>()
func Read<T>() -> T
T Read<T>()
Function Read<T>() As T
ReadNext protected virtual
method ReadNext(out aName: String; out aType: DeserializerType)
void ReadNext(out String aName, out DeserializerType aType)
func ReadNext(_ aName: String, _ aType: DeserializerType)
void ReadNext(__out String aName, __out DeserializerType aType)
Sub ReadNext(<OutAttribute> ByRef aName As String, <OutAttribute> ByRef aType As DeserializerType)
Parameters:
- aName:
- aType:
ReadValue virtual abstract
Reads a value.
method ReadValue: Object
Object ReadValue()
func ReadValue() -> Object
Object ReadValue()
Function ReadValue() As Object
SelectListElement virtual abstract
Called when parsing the start ofa lsit element.
method SelectListElement(aIndex: Int32; out aHint: Type): DeserializerType
DeserializerType SelectListElement(Int32 aIndex, out Type aHint)
func SelectListElement(_ aIndex: Int32, _ aHint: Type) -> DeserializerType
DeserializerType SelectListElement(Int32 aIndex, __out Type aHint)
Function SelectListElement(aIndex As Int32, <OutAttribute> ByRef aHint As Type) As DeserializerType
Parameters:
- aIndex:
- aHint:
SelectProperty virtual abstract
Called when parsing the start of a value.
method SelectProperty(aProp: PropertyInfo; out aHint: Type): DeserializerType
DeserializerType SelectProperty(PropertyInfo aProp, out Type aHint)
func SelectProperty(_ aProp: PropertyInfo, _ aHint: Type) -> DeserializerType
DeserializerType SelectProperty(PropertyInfo aProp, __out Type aHint)
Function SelectProperty(aProp As PropertyInfo, <OutAttribute> ByRef aHint As Type) As DeserializerType
Parameters:
- aProp:
- aHint:
Skip protected virtual
method Skip
void Skip()
func Skip()
void Skip()
Sub Skip()
StartList virtual
Trigger start of list
method StartList
void StartList()
func StartList()
void StartList()
Sub StartList()
StartObject virtual
Trigger start of Object
method StartObject
void StartObject()
func StartObject()
void StartObject()
Sub StartObject()
ToString virtual (declared in Object)
Gets the string representation of this method.