Deserializer

Overview

Abstract base class for deserializers on Island.

Location

Descendants

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

Deserializer()

 

init()

 

Deserializer()

EndList  virtual abstract

Called when the end of a list is expected.

 

method EndList

 

void EndList()

 

func EndList()

 

void EndList()

EndObject  virtual abstract

Called when the end of an object is expected.

 

method EndObject

 

void EndObject()

 

func EndObject()

 

void EndObject()

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void 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()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

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)

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>()

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; }

ReadNext  protected virtual

Reads the next item and returns the name and type.

 

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)

Parameters:

  • aName:
  • aType:

ReadValue  virtual abstract

Reads a value.

 

method ReadValue: Object

 

Object ReadValue()

 

func ReadValue() -> Object

 

Object ReadValue()

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

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)

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)

Parameters:

  • aProp:
  • aHint:

Skip  protected virtual

Skip the current value.

 

method Skip

 

void Skip()

 

func Skip()

 

void Skip()

StartList  virtual

Called when a list is expected.

 

method StartList

 

void StartList()

 

func StartList()

 

void StartList()

StartObject  virtual

Called when an object is expected.

 

method StartObject

 

void StartObject()

 

func StartObject()

 

void StartObject()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

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; }

 

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

Deserializer()

 

init()

 

Deserializer()

EndList  virtual abstract

Called when the end of a list is expected.

 

method EndList

 

void EndList()

 

func EndList()

 

void EndList()

EndObject  virtual abstract

Called when the end of an object is expected.

 

method EndObject

 

void EndObject()

 

func EndObject()

 

void EndObject()

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void 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()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

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)

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>()

ReadNext  protected virtual

Reads the next item and returns the name and type.

 

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)

Parameters:

  • aName:
  • aType:

ReadValue  virtual abstract

Reads a value.

 

method ReadValue: Object

 

Object ReadValue()

 

func ReadValue() -> Object

 

Object ReadValue()

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)

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)

Parameters:

  • aProp:
  • aHint:

Skip  protected virtual

Skip the current value.

 

method Skip

 

void Skip()

 

func Skip()

 

void Skip()

StartList  virtual

Called when a list is expected.

 

method StartList

 

void StartList()

 

func StartList()

 

void StartList()

StartObject  virtual

Called when an object is expected.

 

method StartObject

 

void StartObject()

 

func StartObject()

 

void StartObject()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

Descendants