C# Class Jurassic.Library.PropertyAccessorValue

Represents a the value of an accessor property.
Show file Open project: paulbartrum/jurassic Class Usage Examples

Public Methods

Method Description
GetValue ( ObjectInstance thisObject ) : object

Gets the property value by calling the getter, if one is present.

PropertyAccessorValue ( FunctionInstance getter, FunctionInstance setter ) : System

Creates a new PropertyAccessorValue instance.

SetValue ( ObjectInstance thisObject, object value ) : void

Sets the property value by calling the setter, if one is present.

Method Details

GetValue() public method

Gets the property value by calling the getter, if one is present.
public GetValue ( ObjectInstance thisObject ) : object
thisObject ObjectInstance The value of the "this" keyword inside the getter.
return object

PropertyAccessorValue() public method

Creates a new PropertyAccessorValue instance.
public PropertyAccessorValue ( FunctionInstance getter, FunctionInstance setter ) : System
getter FunctionInstance The getter function, or null if no getter was provided.
setter FunctionInstance The setter function, or null if no setter was provided.
return System

SetValue() public method

Sets the property value by calling the setter, if one is present.
public SetValue ( ObjectInstance thisObject, object value ) : void
thisObject ObjectInstance The value of the "this" keyword inside the setter.
value object The desired value.
return void