C# Class YAMP.ObjectValue

The class for representing an object value.
Inheritance: Value, IFunction, ISetFunction
Datei anzeigen Open project: FlorianRappl/YAMP

Public Methods

Method 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.

Protected Methods

Method Description
RegisterOperators ( ) : void

Registers the member operator.

Private Methods

Method Description
GetValue ( StringValue key ) : Value
Intend ( String value ) : String
SetValue ( StringValue key, Value value ) : Value

Method Details

Copy() public method

Returns a copy of this object value instance.
public Copy ( ) : Value
return Value

Deserialize() public method

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

ObjectValue() public method

Creates a new instance.
public ObjectValue ( ) : System
return System

ObjectValue() public method

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

ObjectValue() public method

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

Perform() public method

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.
return Value

Perform() public method

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.
return Value

RegisterOperators() protected method

Registers the member operator.
protected RegisterOperators ( ) : void
return void

Serialize() public method

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

ToString() public method

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

this() public method

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