Public Member Functions | Static Public Member Functions | Static Public Attributes

v8::Function Class Reference

A JavaScript function object (ECMA-262, 15.3). More...

#include <v8.h>

Inheritance diagram for v8::Function:
v8::Object v8::Value v8::Data

Public Member Functions

V8EXPORT Local< ValueCall (Handle< Object > recv, int argc, Handle< Value > argv[])
V8EXPORT Handle< ValueGetName () const
V8EXPORT int GetScriptLineNumber () const
 Returns zero based line number of function body and kLineOffsetNotFound if no information available.
V8EXPORT ScriptOrigin GetScriptOrigin () const
V8EXPORT Local< ObjectNewInstance (int argc, Handle< Value > argv[]) const
V8EXPORT Local< ObjectNewInstance () const
V8EXPORT void SetName (Handle< String > name)

Static Public Member Functions

static FunctionCast (Value *obj)

Static Public Attributes

static V8EXPORT const int kLineOffsetNotFound

Detailed Description

A JavaScript function object (ECMA-262, 15.3).

Definition at line 1723 of file v8.h.


Member Function Documentation

V8EXPORT Local<Value> v8::Function::Call ( Handle< Object recv,
int  argc,
Handle< Value argv[] 
)
Function * v8::Function::Cast ( v8::Value value  )  [inline, static]

Reimplemented from v8::Object.

Definition at line 4160 of file v8.h.

V8EXPORT Handle<Value> v8::Function::GetName (  )  const
V8EXPORT int v8::Function::GetScriptLineNumber (  )  const

Returns zero based line number of function body and kLineOffsetNotFound if no information available.

V8EXPORT ScriptOrigin v8::Function::GetScriptOrigin (  )  const
V8EXPORT Local<Object> v8::Function::NewInstance ( int  argc,
Handle< Value argv[] 
) const
V8EXPORT Local<Object> v8::Function::NewInstance (  )  const
V8EXPORT void v8::Function::SetName ( Handle< String name  ) 

Field Documentation

V8EXPORT const int v8::Function::kLineOffsetNotFound [static]

Definition at line 1740 of file v8.h.


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