C# 클래스 Jurassic.Library.PropertyAccessorValue

Represents a the value of an accessor property.
파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

GetValue() 공개 메소드

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.
리턴 object

PropertyAccessorValue() 공개 메소드

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.
리턴 System

SetValue() 공개 메소드

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.
리턴 void