Home Reference Source
import ObjectValue from 'esper.js/src/values/ObjectValue.js'
public class | source

ObjectValue

Extends:

Value → ObjectValue

Direct Subclass:

ArrayValue, AssertFunction, src/stdlib/FunctionPrototype.js~BoundFunction, src/Realm.js~ClearTimeoutFunction, ClosureValue, EasyNativeFunction, EasyObjectValue, ErrorInstance, src/Realm.js~EvalFunction, ProxyClass, RegExpValue, src/Realm.js~SetTimeoutFunction

Represents an Object.

Constructor Summary

Public Constructor
public

constructor(realm: *, proto: *)

Member Summary

Public Members
public get
public
public get
public
public

proto: *

public

realm: *

public get
public get

Method Summary

Public Methods
public

* add(other: *): *

public

* constructorOf(what: *, realm: *): *

public

delete(name: *, s: *): *

public

* doubleEquals(other: *): *

public
public

* get(name: *, realm: *, ctxthis: *): *

public

getImmediate(name: *, realm: *, ctxthis: *): *

public
public
public

has(name: *): *

public

hasOwnProperty(name: *): *

public

* inOperator(str: *): *

public

* instanceOf(other: *, realm: *): *

public

* observableProperties(realm: *)

public

rawSetProperty(name: *, value: *)

public

ref(name: *, ctxthis: *): {"name": *, "object": *, "isVariable": *, "del": *, "getValue": *, "setValue": *}

public

set(name: *, value: *, s: *, extra: *): *

public

setImmediate(name: *, value: *): *

public

setPrototype(val: *): *

public

toJS(): *

public

toNative(): *

public

* toNumberValue(): *

public

* toObjectValue(realm: *): *

public

* toPrimitiveValue(preferedType: *): *

public

* toStringValue(): *

Inherited Summary

From class Value
public static get

Holds a value representing ''

public static get

false: BooleanValue: *

Holds a value representing fasle

public static get

Holds a value representing NaN

public static get

Holds a value representing null

public static get

true: BooleanValue: *

Holds a value representing true

public static get

Holds a value representing undefined

public static get

Holds a value representing 0

public static

createNativeBookmark(v: *, realm: *): *

public static

fromNative(value: any, realm: Realm): *

Convert a native javascript value to a Value

public static

fromPrimativeNative(value: any): *

Convert a native javascript primative value to a Value

public static

getBookmark(native: *): *

public static

hasBookmark(native: *): *

public get abstract

A string representation of this Value suitable for display when debugging.

public get
public get
public get
public get abstract

Is the value is truthy, i.e.

public

serial: *

public

* bitAnd(other: *): *

public

* bitNot(): *

public

* bitOr(other: *): *

public

* bitXor(other: *): *

public

* divide(other: Value): Value

Computes the javascript expression value / other

public

* doubleNotEquals(other: Value, realm: Realm): Value

Computes the javascript expression !(value === other)

public

* fastGen(): *

Quickly make a generator for this value

public

fromNative(other: *, realm: *): *

public abstract

* get(name: String, realm: Realm): Value

Indexes the value to get the value of a property.

public

getImmediate(name: *): *

public
public

* gt(other: Value): Value

Computes the javascript expression value > other

public

* gte(other: Value): Value

Computes the javascript expression value >= other

public

* inOperator(other: *): *

public

inspect(): *

public

* lt(other: Value): Value

Computes the javascript expression value < other

public

* lte(other: Value): Value

Computes the javascript expression value <= other

public

* makeThisForNew(realm: *): *

public

* mod(other: Value): Value

Computes the javascript expression value % other

public

* multiply(other: Value): Value

Computes the javascript expression value * other

public

* not(): Value

Computes the javascript expression !value

public

* notEquals(other: Value, realm: Realm): Value

Computes the javascript expression !(value == other)

public

* pow(other: Value): Value

Computes the value raised to the other power (value ** other)

public

* shiftLeft(other: *): *

public

* shiftRight(other: *): *

public

* shiftRightZF(other: *): *

public

* subtract(other: Value): Value

Computes the javascript expression value - other

public
public

* toIntNative(): *

public

toJS(): *

Deep copy this value to a native javascript value.

public abstract

toNative(): *

Converts this value to a native javascript value.

public
public
public

* toPrimitiveNative(preferedType: *): *

public

* toPrimitiveValue(preferedType: *)

public
public
public

* toUIntNative(): *

public

* tripleEquals(other: Value, realm: Realm): Value

Computes the javascript expression value === other

public

* typeOf(): Value

Computes the javascript expression typeof value

public

Computes the javascript expression -value

public

Computes the javascript expression +value

Public Constructors

public constructor(realm: *, proto: *) source

Override:

Value#constructor

Params:

NameTypeAttributeDescription
realm *
proto *

Public Members

public get debugString: * source

A string representation of this Value suitable for display when debugging.

Override:

Value#debugString

public extensable: boolean source

public get jsTypeName: string source

Override:

Value#jsTypeName

public properties: * source

public proto: * source

public realm: * source

public get specTypeName: string source

Override:

Value#specTypeName

public get truthy: boolean source

Is the value is truthy, i.e. !!value

Override:

Value#truthy

Public Methods

public * add(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public * constructorOf(what: *, realm: *): * source

Params:

NameTypeAttributeDescription
what *
realm *

Return:

*

public delete(name: *, s: *): * source

Params:

NameTypeAttributeDescription
name *
s *

Return:

*

public * doubleEquals(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public eraseAndSetPrototype(val: *) source

Params:

NameTypeAttributeDescription
val *

public * get(name: *, realm: *, ctxthis: *): * source

Indexes the value to get the value of a property. i.e. value[name]

Override:

Value#get

Params:

NameTypeAttributeDescription
name *
realm *
ctxthis *

Return:

*

public getImmediate(name: *, realm: *, ctxthis: *): * source

Override:

Value#getImmediate

Params:

NameTypeAttributeDescription
name *
realm *
ctxthis *

Return:

*

public getPropertyValueMap(): * source

Return:

*

public getPrototype(): * source

Return:

*

public has(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public hasOwnProperty(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public * inOperator(str: *): * source

Override:

Value#inOperator

Params:

NameTypeAttributeDescription
str *

Return:

*

public * instanceOf(other: *, realm: *): * source

Params:

NameTypeAttributeDescription
other *
realm *

Return:

*

public * observableProperties(realm: *) source

Params:

NameTypeAttributeDescription
realm *

public rawSetProperty(name: *, value: *) source

Params:

NameTypeAttributeDescription
name *
value *

public ref(name: *, ctxthis: *): {"name": *, "object": *, "isVariable": *, "del": *, "getValue": *, "setValue": *} source

Params:

NameTypeAttributeDescription
name *
ctxthis *

Return:

{"name": *, "object": *, "isVariable": *, "del": *, "getValue": *, "setValue": *}

public set(name: *, value: *, s: *, extra: *): * source

Params:

NameTypeAttributeDescription
name *
value *
s *
extra *

Return:

*

public setImmediate(name: *, value: *): * source

Params:

NameTypeAttributeDescription
name *
value *

Return:

*

public setPrototype(val: *): * source

Params:

NameTypeAttributeDescription
val *

Return:

*

public toJS(): * source

Deep copy this value to a native javascript value.

Override:

Value#toJS

Return:

*

public toNative(): * source

Converts this value to a native javascript value.

Override:

Value#toNative

Return:

*

public * toNumberValue(): * source

Override:

Value#toNumberValue

Return:

*

public * toObjectValue(realm: *): * source

Params:

NameTypeAttributeDescription
realm *

Return:

*

public * toPrimitiveValue(preferedType: *): * source

Override:

Value#toPrimitiveValue

Params:

NameTypeAttributeDescription
preferedType *

Return:

*

public * toStringValue(): * source

Override:

Value#toStringValue

Return:

*