C# Class Jurassic.Library.PropertyAccessorValue

Represents a the value of an accessor property.
Afficher le fichier Open project: paulbartrum/jurassic Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat object

PropertyAccessorValue() public méthode

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.
Résultat System

SetValue() public méthode

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.
Résultat void