v8  3.11.10 (node 0.8.28)
V8 is Google's open source JavaScript engine
Value Class Reference

#include <v8.h>

Inheritance diagram for Value:
Collaboration diagram for Value:

Public Member Functions

bool IsUndefined () const
 
bool IsNull () const
 
V8EXPORT bool IsTrue () const
 
V8EXPORT bool IsFalse () const
 
bool IsString () const
 
V8EXPORT bool IsFunction () const
 
V8EXPORT bool IsArray () const
 
V8EXPORT bool IsObject () const
 
V8EXPORT bool IsBoolean () const
 
V8EXPORT bool IsNumber () const
 
V8EXPORT bool IsExternal () const
 
V8EXPORT bool IsInt32 () const
 
V8EXPORT bool IsUint32 () const
 
V8EXPORT bool IsDate () const
 
V8EXPORT bool IsBooleanObject () const
 
V8EXPORT bool IsNumberObject () const
 
V8EXPORT bool IsStringObject () const
 
V8EXPORT bool IsNativeError () const
 
V8EXPORT bool IsRegExp () const
 
V8EXPORT Local< BooleanToBoolean () const
 
V8EXPORT Local< NumberToNumber () const
 
V8EXPORT Local< StringToString () const
 
V8EXPORT Local< StringToDetailString () const
 
V8EXPORT Local< ObjectToObject () const
 
V8EXPORT Local< IntegerToInteger () const
 
V8EXPORT Local< Uint32ToUint32 () const
 
V8EXPORT Local< Int32ToInt32 () const
 
V8EXPORT Local< Uint32ToArrayIndex () const
 
V8EXPORT bool BooleanValue () const
 
V8EXPORT double NumberValue () const
 
V8EXPORT int64_t IntegerValue () const
 
V8EXPORT uint32_t Uint32Value () const
 
V8EXPORT int32_t Int32Value () const
 
V8EXPORT bool Equals (Handle< Value > that) const
 
V8EXPORT bool StrictEquals (Handle< Value > that) const
 

Detailed Description

The superclass of all JavaScript values and objects.

Definition at line 863 of file v8.h.

Member Function Documentation

◆ BooleanValue()

V8EXPORT bool BooleanValue ( ) const

◆ Equals()

V8EXPORT bool Equals ( Handle< Value that) const

JS ==

◆ Int32Value()

V8EXPORT int32_t Int32Value ( ) const

◆ IntegerValue()

V8EXPORT int64_t IntegerValue ( ) const

◆ IsArray()

V8EXPORT bool IsArray ( ) const

Returns true if this value is an array.

◆ IsBoolean()

V8EXPORT bool IsBoolean ( ) const

Returns true if this value is boolean.

◆ IsBooleanObject()

V8EXPORT bool IsBooleanObject ( ) const

Returns true if this value is a Boolean object.

◆ IsDate()

V8EXPORT bool IsDate ( ) const

Returns true if this value is a Date.

◆ IsExternal()

V8EXPORT bool IsExternal ( ) const

Returns true if this value is external.

◆ IsFalse()

V8EXPORT bool IsFalse ( ) const

Returns true if this value is false.

◆ IsFunction()

V8EXPORT bool IsFunction ( ) const

Returns true if this value is a function.

◆ IsInt32()

V8EXPORT bool IsInt32 ( ) const

Returns true if this value is a 32-bit signed integer.

◆ IsNativeError()

V8EXPORT bool IsNativeError ( ) const

Returns true if this value is a NativeError.

◆ IsNull()

bool IsNull ( ) const
inline

Returns true if this value is the null value. See ECMA-262 4.3.11.

Definition at line 4295 of file v8.h.

◆ IsNumber()

V8EXPORT bool IsNumber ( ) const

Returns true if this value is a number.

◆ IsNumberObject()

V8EXPORT bool IsNumberObject ( ) const

Returns true if this value is a Number object.

◆ IsObject()

V8EXPORT bool IsObject ( ) const

Returns true if this value is an object.

◆ IsRegExp()

V8EXPORT bool IsRegExp ( ) const

Returns true if this value is a RegExp.

◆ IsString()

bool IsString ( ) const
inline

Returns true if this value is an instance of the String type. See ECMA-262 8.4.

Definition at line 4313 of file v8.h.

◆ IsStringObject()

V8EXPORT bool IsStringObject ( ) const

Returns true if this value is a String object.

◆ IsTrue()

V8EXPORT bool IsTrue ( ) const

Returns true if this value is true.

◆ IsUint32()

V8EXPORT bool IsUint32 ( ) const

Returns true if this value is a 32-bit unsigned integer.

◆ IsUndefined()

bool IsUndefined ( ) const
inline

Returns true if this value is the undefined value. See ECMA-262 4.3.10.

Definition at line 4277 of file v8.h.

◆ NumberValue()

V8EXPORT double NumberValue ( ) const

◆ StrictEquals()

V8EXPORT bool StrictEquals ( Handle< Value that) const

◆ ToArrayIndex()

V8EXPORT Local<Uint32> ToArrayIndex ( ) const

Attempts to convert a string to an array index. Returns an empty handle if the conversion fails.

◆ ToBoolean()

V8EXPORT Local<Boolean> ToBoolean ( ) const

◆ ToDetailString()

V8EXPORT Local<String> ToDetailString ( ) const

◆ ToInt32()

V8EXPORT Local<Int32> ToInt32 ( ) const

◆ ToInteger()

V8EXPORT Local<Integer> ToInteger ( ) const

◆ ToNumber()

V8EXPORT Local<Number> ToNumber ( ) const

◆ ToObject()

V8EXPORT Local<Object> ToObject ( ) const

◆ ToString()

V8EXPORT Local<String> ToString ( ) const

◆ ToUint32()

V8EXPORT Local<Uint32> ToUint32 ( ) const

◆ Uint32Value()

V8EXPORT uint32_t Uint32Value ( ) const

The documentation for this class was generated from the following file: