Value
Direct Subclass:
Indirect Subclass:
Represents a value a variable could take.
Static Member Summary
| Static Public Members | ||
| public static get |
Holds a value representing |
|
| public static get |
false: BooleanValue: * Holds a value representing |
|
| public static get |
nan: NumberValue: * Holds a value representing |
|
| public static get |
Holds a value representing |
|
| public static get |
true: BooleanValue: * Holds a value representing |
|
| public static get |
undef: UndefinedValue: * Holds a value representing |
|
| public static get |
zero: NumberValue: * Holds a value representing |
|
Static Method Summary
| Static Public Methods | ||
| 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: *): * |
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public get abstract |
debugString: string: * A string representation of this Value suitable for display when debugging. |
|
| public get |
isCallable: * |
|
| public get |
|
|
| public |
serial: * |
|
| public get |
specTypeName: * |
|
| public get abstract |
Is the value is truthy, i.e. |
|
Method Summary
| Public Methods | ||
| public |
* bitAnd(other: *): * |
|
| public |
* bitNot(): * |
|
| public |
* bitOr(other: *): * |
|
| public |
* bitXor(other: *): * |
|
| public |
Computes the javascript expression |
|
| public |
* doubleNotEquals(other: Value, realm: Realm): Value Computes the javascript expression |
|
| public |
* fastGen(): * Quickly make a generator for this value |
|
| public |
fromNative(other: *, realm: *): * |
|
| public abstract |
Indexes the value to get the value of a property. |
|
| public |
getImmediate(name: *): * |
|
| public |
getPrototypeProperty(): * |
|
| public |
Computes the javascript expression |
|
| public |
Computes the javascript expression |
|
| public |
* inOperator(other: *): * |
|
| public |
inspect(): * |
|
| public |
Computes the javascript expression |
|
| public |
Computes the javascript expression |
|
| public |
* makeThisForNew(realm: *): * |
|
| public |
Computes the javascript expression |
|
| public |
Computes the javascript expression |
|
| public |
Computes the javascript expression |
|
| public |
Computes the javascript expression |
|
| public |
Computes the |
|
| public |
* shiftLeft(other: *): * |
|
| public |
* shiftRight(other: *): * |
|
| public |
* shiftRightZF(other: *): * |
|
| public |
Computes the javascript expression |
|
| public |
* toBooleanValue(): * |
|
| 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 |
* toNumberNative(): * |
|
| public |
* toNumberValue() |
|
| public |
* toPrimitiveNative(preferedType: *): * |
|
| public |
* toPrimitiveValue(preferedType: *) |
|
| public |
* toStringNative(): * |
|
| public |
* toStringValue() |
|
| public |
* toUIntNative(): * |
|
| public |
* tripleEquals(other: Value, realm: Realm): Value Computes the javascript expression |
|
| public |
Computes the javascript expression |
|
| public |
* unaryMinus(): Value Computes the javascript expression |
|
| public |
Computes the javascript expression |
|
Static Public Members
public static get false: BooleanValue: * source
Holds a value representing fasle
Return:
| BooleanValue | false |
public static get true: BooleanValue: * source
Holds a value representing true
Return:
| BooleanValue | true |
Static Public Methods
public static createNativeBookmark(v: *, realm: *): * source
Params:
| Name | Type | Attribute | Description |
| v | * | ||
| realm | * |
Return:
| * |
public static fromNative(value: any, realm: Realm): * source
Convert a native javascript value to a Value
Params:
| Name | Type | Attribute | Description |
| value | any | The value to convert |
|
| realm | Realm | The realm of the new value. |
Return:
| * |
public static fromPrimativeNative(value: any): * source
Convert a native javascript primative value to a Value
Params:
| Name | Type | Attribute | Description |
| value | any | The value to convert |
Return:
| * |
public static getBookmark(native: *): * source
Params:
| Name | Type | Attribute | Description |
| native | * |
Return:
| * |
public static hasBookmark(native: *): * source
Params:
| Name | Type | Attribute | Description |
| native | * |
Return:
| * |
Public Constructors
public constructor() source
Public Members
public get abstract debugString: string: * source
A string representation of this Value suitable for display when debugging.
public get isCallable: * source
public get jsTypeName source
public serial: * source
public get specTypeName: * source
Public Methods
public * divide(other: Value): Value source
Computes the javascript expression value / other
Params:
| Name | Type | Attribute | Description |
| other | Value | The other value |
public * doubleNotEquals(other: Value, realm: Realm): Value source
Computes the javascript expression !(value === other)
public fromNative(other: *, realm: *): * source
Params:
| Name | Type | Attribute | Description |
| other | * | ||
| realm | * |
Return:
| * |
public abstract * get(name: String, realm: Realm): Value source
Indexes the value to get the value of a property.
i.e. value[name]
public * gt(other: Value): Value source
Computes the javascript expression value > other
Params:
| Name | Type | Attribute | Description |
| other | Value | The other value |
public * gte(other: Value): Value source
Computes the javascript expression value >= other
Params:
| Name | Type | Attribute | Description |
| other | Value | The other value |
public * lt(other: Value): Value source
Computes the javascript expression value < other
Params:
| Name | Type | Attribute | Description |
| other | Value | The other value |
public * lte(other: Value): Value source
Computes the javascript expression value <= other
Params:
| Name | Type | Attribute | Description |
| other | Value | The other value |
public * mod(other: Value): Value source
Computes the javascript expression value % other
Params:
| Name | Type | Attribute | Description |
| other | Value | The other value |
public * multiply(other: Value): Value source
Computes the javascript expression value * other
Params:
| Name | Type | Attribute | Description |
| other | Value | The other value |
public * notEquals(other: Value, realm: Realm): Value source
Computes the javascript expression !(value == other)
public * pow(other: Value): Value source
Computes the value raised to the other power (value ** other)
Params:
| Name | Type | Attribute | Description |
| other | Value | The other value |
public * subtract(other: Value): Value source
Computes the javascript expression value - other
Params:
| Name | Type | Attribute | Description |
| other | Value | The other value |
public * toNumberValue() source
public * toPrimitiveNative(preferedType: *): * source
Params:
| Name | Type | Attribute | Description |
| preferedType | * |
Return:
| * |
public * toPrimitiveValue(preferedType: *) source
Params:
| Name | Type | Attribute | Description |
| preferedType | * |