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

BridgeValue

Extends:

Value → BridgeValue

Represents a value that maps directly to an untrusted local value.

Static Method Summary

Static Public Methods
public static

make(native: *): *

Constructor Summary

Public Constructor
public

constructor(value: *)

Member Summary

Public Members
public get
public get
public

native: *

public get

truthy: *

Method Summary

Public Methods
public

* add(other: *): *

public

* asString(): *

public

* bitAnd(other: *): *

public

* bitOr(other: *): *

public

* bitXor(other: *): *

public

* call(thiz: Value, args: Value[]): *

public

* divide(other: *): *

public

* doubleEquals(other: *): *

public

* get(name: *): *

public

* gt(other: *): *

public

* gte(other: *): *

public

* inOperator(other: *): *

public

* instanceOf(other: *): *

public

* lt(other: *): *

public

* lte(other: *): *

public

makeBridge(value: *): *

public
public

* mod(other: *): *

public

* multiply(other: *): *

public

* not(): *

public

* observableProperties(realm: *)

public

ref(name: *, s: *): *

public

* set(name: *, value: *)

public

* shiftLeft(other: *): *

public

* shiftRight(other: *): *

public

* shiftRightZF(other: *): *

public

* subtract(other: *): *

public

toNative(): *

public

* toStringValue(): *

public

* tripleEquals(other: *): *

public

* unaryMinus(): *

public

* unaryPlus(): *

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

Static Public Methods

public static make(native: *): * source

Params:

NameTypeAttributeDescription
native *

Return:

*

Public Constructors

public constructor(value: *) source

Override:

Value#constructor

Params:

NameTypeAttributeDescription
value *

Public Members

public get debugString: * source

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

Override:

Value#debugString

public get jsTypeName: * source

Override:

Value#jsTypeName

public native: * source

public get truthy: * source

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

Override:

Value#truthy

Public Methods

public * add(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public * asString(): * source

Return:

*

public * bitAnd(other: *): * source

Override:

Value#bitAnd

Params:

NameTypeAttributeDescription
other *

Return:

*

public * bitOr(other: *): * source

Override:

Value#bitOr

Params:

NameTypeAttributeDescription
other *

Return:

*

public * bitXor(other: *): * source

Override:

Value#bitXor

Params:

NameTypeAttributeDescription
other *

Return:

*

public * call(thiz: Value, args: Value[]): * source

Params:

NameTypeAttributeDescription
thiz Value
args Value[]

Return:

*

public * divide(other: *): * source

Computes the javascript expression value / other

Override:

Value#divide

Params:

NameTypeAttributeDescription
other *

Return:

*

public * doubleEquals(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public * get(name: *): * source

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

Override:

Value#get

Params:

NameTypeAttributeDescription
name *

Return:

*

public * gt(other: *): * source

Computes the javascript expression value > other

Override:

Value#gt

Params:

NameTypeAttributeDescription
other *

Return:

*

public * gte(other: *): * source

Computes the javascript expression value >= other

Override:

Value#gte

Params:

NameTypeAttributeDescription
other *

Return:

*

public * inOperator(other: *): * source

Override:

Value#inOperator

Params:

NameTypeAttributeDescription
other *

Return:

*

public * instanceOf(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public * lt(other: *): * source

Computes the javascript expression value < other

Override:

Value#lt

Params:

NameTypeAttributeDescription
other *

Return:

*

public * lte(other: *): * source

Computes the javascript expression value <= other

Override:

Value#lte

Params:

NameTypeAttributeDescription
other *

Return:

*

public makeBridge(value: *): * source

Params:

NameTypeAttributeDescription
value *

Return:

*

public * makeThisForNew(): * source

Override:

Value#makeThisForNew

Return:

*

public * mod(other: *): * source

Computes the javascript expression value % other

Override:

Value#mod

Params:

NameTypeAttributeDescription
other *

Return:

*

public * multiply(other: *): * source

Computes the javascript expression value * other

Override:

Value#multiply

Params:

NameTypeAttributeDescription
other *

Return:

*

public * not(): * source

Computes the javascript expression !value

Override:

Value#not

Return:

*

public * observableProperties(realm: *) source

Params:

NameTypeAttributeDescription
realm *

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

Params:

NameTypeAttributeDescription
name *
s *

Return:

*

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

Params:

NameTypeAttributeDescription
name *
value *

public * shiftLeft(other: *): * source

Override:

Value#shiftLeft

Params:

NameTypeAttributeDescription
other *

Return:

*

public * shiftRight(other: *): * source

Override:

Value#shiftRight

Params:

NameTypeAttributeDescription
other *

Return:

*

public * shiftRightZF(other: *): * source

Override:

Value#shiftRightZF

Params:

NameTypeAttributeDescription
other *

Return:

*

public * subtract(other: *): * source

Computes the javascript expression value - other

Override:

Value#subtract

Params:

NameTypeAttributeDescription
other *

Return:

*

public toNative(): * source

Converts this value to a native javascript value.

Override:

Value#toNative

Return:

*

public * toStringValue(): * source

Override:

Value#toStringValue

Return:

*

public * tripleEquals(other: *): * source

Computes the javascript expression value === other

Override:

Value#tripleEquals

Params:

NameTypeAttributeDescription
other *

Return:

*

public * unaryMinus(): * source

Computes the javascript expression -value

Override:

Value#unaryMinus

Return:

*

public * unaryPlus(): * source

Computes the javascript expression +value

Override:

Value#unaryPlus

Return:

*