v8  3.14.5(node0.10.28)
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 869 of file v8.h.

Member Function Documentation

bool BooleanValue ( ) const

Definition at line 2540 of file api.cc.

References ENTER_V8, LOG_API, 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 2171 of file api.cc.

bool IsBoolean ( ) const

Returns true if this value is boolean.

Definition at line 2189 of file api.cc.

bool IsBooleanObject ( ) const

Returns true if this value is a Boolean object.

Definition at line 2298 of file api.cc.

References Isolate::heap().

Referenced by THREADED_TEST().

bool IsDate ( ) const

Returns true if this value is a Date.

Definition at line 2239 of file api.cc.

References Isolate::heap().

Referenced by THREADED_TEST().

bool IsExternal ( ) const

Returns true if this value is external.

Definition at line 2197 of file api.cc.

bool IsFalse ( ) const

Returns true if this value is false.

Definition at line 2149 of file api.cc.

Referenced by THREADED_TEST().

bool IsFunction ( ) const

Returns true if this value is a function.

Definition at line 2155 of file api.cc.

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

bool IsInt32 ( ) const

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

Definition at line 2205 of file api.cc.

References DoubleRepresentation::bits, v8::internal::FastD2I(), and v8::internal::FastI2D().

Referenced by JSObject::GetPropertyAttributeWithInterceptor(), JSObject::HasElementWithInterceptor(), and THREADED_TEST().

bool IsNativeError ( ) const

Returns true if this value is a NativeError.

Definition at line 2279 of file api.cc.

References JSObject::cast().

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 4490 of file v8.h.

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

bool IsNumber ( ) const

Returns true if this value is a number.

Definition at line 2183 of file api.cc.

Referenced by TEST(), and THREADED_TEST().

bool IsNumberObject ( ) const

Returns true if this value is a Number object.

Definition at line 2255 of file api.cc.

References Isolate::heap().

Referenced by THREADED_TEST().

bool IsObject ( ) const

Returns true if this value is an object.

Definition at line 2177 of file api.cc.

Referenced by TEST(), and THREADED_TEST().

bool IsRegExp ( ) const

Returns true if this value is a RegExp.

Definition at line 2306 of file api.cc.

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 4508 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 2247 of file api.cc.

References Isolate::heap().

Referenced by THREADED_TEST().

bool IsTrue ( ) const

Returns true if this value is true.

Definition at line 2143 of file api.cc.

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 2222 of file api.cc.

References DoubleRepresentation::bits, Smi::cast(), v8::internal::FastD2UI(), v8::internal::FastUI2D(), 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 4472 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 2711 of file api.cc.

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

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 2633 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(), Execution::ToString(), Utils::Uint32ToLocal(), and Smi::value().

Referenced by THREADED_TEST().

Local< Boolean > ToBoolean ( ) const

Definition at line 2373 of file api.cc.

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

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

Definition at line 2597 of file api.cc.

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

Referenced by TEST().

Local< Integer > ToInteger ( ) const
Local< Number > ToNumber ( ) const

Definition at line 2390 of file api.cc.

References ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, LOG_API, and Execution::ToNumber().

Referenced by TEST().

Local< Uint32 > ToUint32 ( ) const
uint32_t Uint32Value ( ) const

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