Public Member Functions

v8::Value Class Reference

#include <v8.h>

Inheritance diagram for v8::Value:
v8::Data v8::External v8::Object v8::Primitive v8::Array v8::BooleanObject v8::Date v8::Function v8::NumberObject v8::RegExp v8::StringObject v8::Boolean v8::Number v8::String

List of all members.

Public Member Functions

V8EXPORT bool IsUndefined () const
V8EXPORT 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.


Member Function Documentation

V8EXPORT bool v8::Value::Equals ( Handle< Value that  )  const

JS ==

V8EXPORT bool v8::Value::IsArray (  )  const

Returns true if this value is an array.

V8EXPORT bool v8::Value::IsBoolean (  )  const

Returns true if this value is boolean.

V8EXPORT bool v8::Value::IsBooleanObject (  )  const

Returns true if this value is a Boolean object.

V8EXPORT bool v8::Value::IsDate (  )  const

Returns true if this value is a Date.

V8EXPORT bool v8::Value::IsExternal (  )  const

Returns true if this value is external.

Reimplemented in v8::String.

V8EXPORT bool v8::Value::IsFalse (  )  const

Returns true if this value is false.

V8EXPORT bool v8::Value::IsFunction (  )  const

Returns true if this value is a function.

V8EXPORT bool v8::Value::IsInt32 (  )  const

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

V8EXPORT bool v8::Value::IsNativeError (  )  const

Returns true if this value is a NativeError.

V8EXPORT bool v8::Value::IsNull (  )  const

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

V8EXPORT bool v8::Value::IsNumber (  )  const

Returns true if this value is a number.

V8EXPORT bool v8::Value::IsNumberObject (  )  const

Returns true if this value is a Number object.

V8EXPORT bool v8::Value::IsObject (  )  const

Returns true if this value is an object.

V8EXPORT bool v8::Value::IsRegExp (  )  const

Returns true if this value is a RegExp.

bool v8::Value::IsString (  )  const [inline]

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

V8EXPORT bool v8::Value::IsStringObject (  )  const

Returns true if this value is a String object.

V8EXPORT bool v8::Value::IsTrue (  )  const

Returns true if this value is true.

V8EXPORT bool v8::Value::IsUint32 (  )  const

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

V8EXPORT bool v8::Value::IsUndefined (  )  const

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

V8EXPORT Local<Uint32> v8::Value::ToArrayIndex (  )  const

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


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