v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FunctionCallbackInfo< T > Class Template Reference

#include <v8.h>

Collaboration diagram for FunctionCallbackInfo< T >:

Public Member Functions

V8_INLINE int Length () const
 
V8_INLINE Local< Valueoperator[] (int i) const
 
V8_INLINE Local< FunctionCallee () const
 
V8_INLINE Local< ObjectThis () const
 
V8_INLINE Local< ObjectHolder () const
 
V8_INLINE bool IsConstructCall () const
 
V8_INLINE Local< ValueData () const
 
V8_INLINE IsolateGetIsolate () const
 
V8_INLINE ReturnValue< TGetReturnValue () const
 

Static Public Attributes

static const int kArgsLength = 7
 

Protected Member Functions

V8_INLINE FunctionCallbackInfo (internal::Object **implicit_args, internal::Object **values, int length, bool is_construct_call)
 

Protected Attributes

internal::Object ** implicit_args_
 
internal::Object ** values_
 
int length_
 
bool is_construct_call_
 

Static Protected Attributes

static const int kHolderIndex = 0
 
static const int kIsolateIndex = 1
 
static const int kReturnValueDefaultValueIndex = 2
 
static const int kReturnValueIndex = 3
 
static const int kDataIndex = 4
 
static const int kCalleeIndex = 5
 
static const int kContextSaveIndex = 6
 

Friends

class internal::FunctionCallbackArguments
 
class internal::CustomArguments< FunctionCallbackInfo >
 

Detailed Description

template<typename T>
class v8::FunctionCallbackInfo< T >

The argument information given to function call callbacks. This class provides access to information about the context of the call, including the receiver, the number and values of arguments, and the holder of the function.

Definition at line 136 of file v8.h.

Constructor & Destructor Documentation

FunctionCallbackInfo ( internal::Object **  implicit_args,
internal::Object **  values,
int  length,
bool  is_construct_call 
)
protected

Definition at line 6017 of file v8.h.

Member Function Documentation

Local< Function > Callee ( ) const

Definition at line 6035 of file v8.h.

Local< Value > Data ( ) const

Definition at line 6055 of file v8.h.

Referenced by RequestInterruptTestBase::ShouldContinueCallback().

Local< Object > Holder ( ) const

Definition at line 6048 of file v8.h.

bool IsConstructCall ( ) const

Definition at line 6073 of file v8.h.

Local< Value > operator[] ( int  i) const

Definition at line 6028 of file v8.h.

References v8::Undefined().

Local< Object > This ( ) const

Definition at line 6042 of file v8.h.

Referenced by TEST().

Friends And Related Function Documentation

Definition at line 2552 of file v8.h.

Definition at line 2551 of file v8.h.

Field Documentation

internal::Object** implicit_args_
protected

Definition at line 2565 of file v8.h.

bool is_construct_call_
protected

Definition at line 2568 of file v8.h.

const int kArgsLength = 7
static

Definition at line 2548 of file v8.h.

const int kCalleeIndex = 5
staticprotected

Definition at line 2558 of file v8.h.

Referenced by FunctionCallbackArguments::FunctionCallbackArguments().

const int kContextSaveIndex = 6
staticprotected

Definition at line 2559 of file v8.h.

Referenced by FunctionCallbackArguments::FunctionCallbackArguments().

const int kDataIndex = 4
staticprotected

Definition at line 2557 of file v8.h.

Referenced by FunctionCallbackArguments::FunctionCallbackArguments().

const int kHolderIndex = 0
staticprotected

Definition at line 2553 of file v8.h.

Referenced by FunctionCallbackArguments::FunctionCallbackArguments().

const int kIsolateIndex = 1
staticprotected

Definition at line 2554 of file v8.h.

Referenced by FunctionCallbackArguments::FunctionCallbackArguments().

const int kReturnValueDefaultValueIndex = 2
staticprotected

Definition at line 2555 of file v8.h.

Referenced by FunctionCallbackArguments::FunctionCallbackArguments().

const int kReturnValueIndex = 3
staticprotected

Definition at line 2556 of file v8.h.

Referenced by FunctionCallbackArguments::FunctionCallbackArguments().

int length_
protected

Definition at line 2567 of file v8.h.

internal::Object** values_
protected

Definition at line 2566 of file v8.h.


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