v8  5.1.281 (node 6.17.1)
V8 is Google's open source JavaScript engine
FunctionCallbackInfo< T > Class Template Reference

#include <v8.h>

Public Member Functions

V8_INLINE int Length () const
 
V8_INLINE Local< Valueoperator[] (int i) const
 
V8_INLINE V8_DEPRECATED ("Use Data() to explicitly pass Callee instead", Local< Function > Callee() 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< T > GetReturnValue () 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_
 
int 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 3156 of file v8.h.

Constructor & Destructor Documentation

◆ FunctionCallbackInfo()

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

Member Function Documentation

◆ Data()

◆ GetIsolate()

◆ GetReturnValue()

◆ Holder()

◆ IsConstructCall()

bool IsConstructCall

Definition at line 7893 of file v8.h.

References FunctionCallbackInfo< T >::is_construct_call_.

◆ Length()

int Length

Definition at line 7899 of file v8.h.

References FunctionCallbackInfo< T >::length_.

◆ operator[]()

◆ This()

Local< Object > This

Definition at line 7862 of file v8.h.

References Local< T >::Local, and FunctionCallbackInfo< T >::values_.

◆ V8_DEPRECATED()

V8_INLINE V8_DEPRECATED ( "Use Data() to explicitly pass Callee instead"  ,
Local< Function > Callee() const   
)

Friends And Related Function Documentation

◆ internal::CustomArguments< FunctionCallbackInfo >

Definition at line 3172 of file v8.h.

◆ internal::FunctionCallbackArguments

friend class internal::FunctionCallbackArguments
friend

Definition at line 3172 of file v8.h.

Field Documentation

◆ implicit_args_

◆ is_construct_call_

int is_construct_call_
protected

◆ kArgsLength

const int kArgsLength = 7
static

Definition at line 3169 of file v8.h.

◆ kCalleeIndex

const int kCalleeIndex = 5
staticprotected

Definition at line 3179 of file v8.h.

◆ kContextSaveIndex

const int kContextSaveIndex = 6
staticprotected

Definition at line 3180 of file v8.h.

◆ kDataIndex

const int kDataIndex = 4
staticprotected

Definition at line 3178 of file v8.h.

Referenced by FunctionCallbackInfo< T >::Data().

◆ kHolderIndex

const int kHolderIndex = 0
staticprotected

Definition at line 3174 of file v8.h.

Referenced by FunctionCallbackInfo< T >::Holder().

◆ kIsolateIndex

const int kIsolateIndex = 1
staticprotected

Definition at line 3175 of file v8.h.

Referenced by FunctionCallbackInfo< T >::GetIsolate().

◆ kReturnValueDefaultValueIndex

const int kReturnValueDefaultValueIndex = 2
staticprotected

Definition at line 3176 of file v8.h.

◆ kReturnValueIndex

const int kReturnValueIndex = 3
staticprotected

Definition at line 3177 of file v8.h.

Referenced by FunctionCallbackInfo< T >::GetReturnValue().

◆ length_

◆ values_

internal::Object** values_
protected

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