v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

bool BooleanValue ( ) const

Definition at line 2532 of file api.cc.

References ENTER_V8, LOG_API, Utils::OpenHandle(), and Execution::ToBoolean().

Referenced by TEST(), and THREADED_TEST().

int64_t IntegerValue ( ) const
bool IsArray ( ) const

Returns true if this value is an array.

Definition at line 2163 of file api.cc.

References Utils::OpenHandle().

bool IsBoolean ( ) const

Returns true if this value is boolean.

Definition at line 2181 of file api.cc.

References Utils::OpenHandle().

bool IsBooleanObject ( ) const

Returns true if this value is a Boolean object.

Definition at line 2290 of file api.cc.

References Isolate::heap(), and Utils::OpenHandle().

Referenced by THREADED_TEST().

bool IsDate ( ) const

Returns true if this value is a Date.

Definition at line 2231 of file api.cc.

References Isolate::heap(), and Utils::OpenHandle().

Referenced by THREADED_TEST().

bool IsExternal ( ) const

Returns true if this value is external.

Definition at line 2189 of file api.cc.

References Utils::OpenHandle().

bool IsFalse ( ) const

Returns true if this value is false.

Definition at line 2141 of file api.cc.

References Utils::OpenHandle().

Referenced by THREADED_TEST().

bool IsFunction ( ) const

Returns true if this value is a function.

Definition at line 2147 of file api.cc.

References Utils::OpenHandle().

Referenced by JsHttpRequestProcessor::Initialize(), and RunCppCycle().

bool IsInt32 ( ) const
bool IsNativeError ( ) const

Returns true if this value is a NativeError.

Definition at line 2271 of file api.cc.

References JSObject::cast(), and Utils::OpenHandle().

Referenced by THREADED_TEST().

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.

Referenced by v8::internal::RUNTIME_FUNCTION().

bool IsNumber ( ) const

Returns true if this value is a number.

Definition at line 2175 of file api.cc.

References Utils::OpenHandle().

Referenced by TEST(), and THREADED_TEST().

bool IsNumberObject ( ) const

Returns true if this value is a Number object.

Definition at line 2247 of file api.cc.

References Isolate::heap(), and Utils::OpenHandle().

Referenced by THREADED_TEST().

bool IsObject ( ) const

Returns true if this value is an object.

Definition at line 2169 of file api.cc.

References Utils::OpenHandle().

Referenced by TEST(), and THREADED_TEST().

bool IsRegExp ( ) const

Returns true if this value is a RegExp.

Definition at line 2298 of file api.cc.

References Utils::OpenHandle().

Referenced by TEST().

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.

Referenced by TEST(), and THREADED_TEST().

bool IsStringObject ( ) const

Returns true if this value is a String object.

Definition at line 2239 of file api.cc.

References Isolate::heap(), and Utils::OpenHandle().

Referenced by THREADED_TEST().

bool IsTrue ( ) const

Returns true if this value is true.

Definition at line 2135 of file api.cc.

References Utils::OpenHandle().

Referenced by Object::Delete(), TEST(), and THREADED_TEST().

bool IsUint32 ( ) const

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

Definition at line 2214 of file api.cc.

References DoubleRepresentation::bits, Smi::cast(), v8::internal::FastD2UI(), v8::internal::FastUI2D(), Utils::OpenHandle(), and Smi::value().

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.

Referenced by ExecuteString(), Shell::ExecuteString(), Shell::System(), TEST(), and THREADED_TEST().

double NumberValue ( ) const
bool StrictEquals ( Handle< Value that) const

Definition at line 2703 of file api.cc.

References String::cast(), String::Equals(), isnan(), LOG_API, and Utils::OpenHandle().

Referenced by THREADED_TEST().

Local< Uint32 > ToArrayIndex ( ) const

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

Definition at line 2625 of file api.cc.

References Handle< T >::cast(), Smi::cast(), ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, Isolate::factory(), Smi::FromInt(), Smi::kMaxValue, LOG_API, Factory::NewNumber(), Utils::OpenHandle(), Execution::ToString(), Utils::Uint32ToLocal(), and Smi::value().

Referenced by THREADED_TEST().

Local< Boolean > ToBoolean ( ) const

Definition at line 2365 of file api.cc.

References ENTER_V8, LOG_API, Utils::OpenHandle(), and Execution::ToBoolean().

Local< String > ToDetailString ( ) const
Local< Int32 > ToInt32 ( ) const

Definition at line 2589 of file api.cc.

References ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, LOG_API, Utils::OpenHandle(), and Execution::ToInt32().

Referenced by TEST().

Local< Integer > ToInteger ( ) const
Local< Number > ToNumber ( ) const
Local< Uint32 > ToUint32 ( ) const
uint32_t Uint32Value ( ) const

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