C# Class YAMP.ObjectValue

The class for representing an object value.
Inheritance: Value, IFunction, ISetFunction
Afficher le fichier Open project: FlorianRappl/YAMP

Méthodes publiques

Méthode Description
Copy ( ) : Value

Returns a copy of this object value instance.

Deserialize ( Byte content ) : Value

Creates a new object value from the binary content.

ObjectValue ( ) : System

Creates a new instance.

ObjectValue ( Value>.IDictionary values ) : System

Creates a new instance and sets the values.

ObjectValue ( Object values ) : System

Creates a new instance and sets the values.

Perform ( ParseContext context, Value argument ) : Value

The method used by YAMP to get a value from an object.

Perform ( ParseContext context, Value argument, Value value ) : Value

Method used by YAMP to set a value to an object.

Serialize ( ) : Byte[]

Converts the given value into binary data.

ToString ( ParseContext context ) : String

Returns the string content of this instance.

this ( String key ) : Value

Gets or sets the value for the given key.

Méthodes protégées

Méthode Description
RegisterOperators ( ) : void

Registers the member operator.

Private Methods

Méthode Description
GetValue ( StringValue key ) : Value
Intend ( String value ) : String
SetValue ( StringValue key, Value value ) : Value

Method Details

Copy() public méthode

Returns a copy of this object value instance.
public Copy ( ) : Value
Résultat Value

Deserialize() public méthode

Creates a new object value from the binary content.
public Deserialize ( Byte content ) : Value
content Byte The data which contains the content.
Résultat Value

ObjectValue() public méthode

Creates a new instance.
public ObjectValue ( ) : System
Résultat System

ObjectValue() public méthode

Creates a new instance and sets the values.
public ObjectValue ( Value>.IDictionary values ) : System
values Value>.IDictionary The initial values to use.
Résultat System

ObjectValue() public méthode

Creates a new instance and sets the values.
public ObjectValue ( Object values ) : System
values Object The initial values to use.
Résultat System

Perform() public méthode

The method used by YAMP to get a value from an object.
public Perform ( ParseContext context, Value argument ) : Value
context ParseContext The context where this is happening.
argument Value The key of the value to retrieve.
Résultat Value

Perform() public méthode

Method used by YAMP to set a value to an object.
public Perform ( ParseContext context, Value argument, Value value ) : Value
context ParseContext The context where this is happening.
argument Value The key of the value to retrieve.
value Value The value to set.
Résultat Value

RegisterOperators() protected méthode

Registers the member operator.
protected RegisterOperators ( ) : void
Résultat void

Serialize() public méthode

Converts the given value into binary data.
public Serialize ( ) : Byte[]
Résultat Byte[]

ToString() public méthode

Returns the string content of this instance.
public ToString ( ParseContext context ) : String
context ParseContext The context of the invocation.
Résultat String

this() public méthode

Gets or sets the value for the given key.
public this ( String key ) : Value
key String
Résultat Value