v8  5.8.282(node8.0.0)
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 Local< ValueNewTarget () 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 = 8
 

Protected Member Functions

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

Protected Attributes

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

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
 
static const int kNewTargetIndex = 7
 

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

Constructor & Destructor Documentation

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

Member Function Documentation

Isolate * GetIsolate ( ) const
ReturnValue< T > GetReturnValue ( ) const
Local< Object > Holder ( ) const
bool IsConstructCall ( ) const

Definition at line 9039 of file v8.h.

References FunctionCallbackInfo< T >::NewTarget().

int Length ( ) const

Definition at line 9045 of file v8.h.

References FunctionCallbackInfo< T >::length_.

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

Definition at line 9003 of file v8.h.

References FunctionCallbackInfo< T >::values_.

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

Friends And Related Function Documentation

Definition at line 3515 of file v8.h.

friend class internal::FunctionCallbackArguments
friend

Definition at line 3514 of file v8.h.

Field Documentation

const int kArgsLength = 8
static

Definition at line 3511 of file v8.h.

const int kCalleeIndex = 5
staticprotected

Definition at line 3521 of file v8.h.

const int kContextSaveIndex = 6
staticprotected

Definition at line 3522 of file v8.h.

const int kDataIndex = 4
staticprotected

Definition at line 3520 of file v8.h.

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

const int kHolderIndex = 0
staticprotected

Definition at line 3516 of file v8.h.

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

const int kIsolateIndex = 1
staticprotected

Definition at line 3517 of file v8.h.

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

const int kNewTargetIndex = 7
staticprotected

Definition at line 3523 of file v8.h.

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

const int kReturnValueDefaultValueIndex = 2
staticprotected

Definition at line 3518 of file v8.h.

const int kReturnValueIndex = 3
staticprotected

Definition at line 3519 of file v8.h.

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

internal::Object** values_
protected

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