Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
v8::FunctionCallbackInfo< T > Class Template Reference

#include <v8.h>

Public Member Functions

int Length () const
 
Local< Valueoperator[] (int i) const
 
Local< FunctionCallee () const
 
Local< ObjectThis () const
 
Local< ObjectHolder () const
 
Local< ValueNewTarget () const
 
bool IsConstructCall () const
 
Local< ValueData () const
 
IsolateGetIsolate () const
 
ReturnValue< T > GetReturnValue () const
 

Static Public Attributes

static const int kArgsLength = 8
 

Protected Member Functions

 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 >
 
class debug::ConsoleCallArguments
 

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.

Examples
process.cc, and shell.cc.

Constructor & Destructor Documentation

◆ FunctionCallbackInfo()

template<typename T >
v8::FunctionCallbackInfo< T >::FunctionCallbackInfo ( internal::Object **  implicit_args,
internal::Object **  values,
int  length 
)
inlineprotected

Member Function Documentation

◆ Callee()

template<typename T >
Local< Function > v8::FunctionCallbackInfo< T >::Callee
inline

◆ Data()

template<typename T >
Local< Value > v8::FunctionCallbackInfo< T >::Data
inline

The data argument specified when creating the callback.

◆ GetIsolate()

template<typename T >
Isolate * v8::FunctionCallbackInfo< T >::GetIsolate
inline

The current Isolate.

Examples
process.cc, and shell.cc.

◆ GetReturnValue()

template<typename T >
ReturnValue< T > v8::FunctionCallbackInfo< T >::GetReturnValue
inline

The ReturnValue for the call.

Examples
shell.cc.

◆ Holder()

template<typename T >
Local< Object > v8::FunctionCallbackInfo< T >::Holder
inline

If the callback was created without a Signature, this is the same value as This(). If there is a signature, and the signature didn't match This() but one of its hidden prototypes, this will be the respective hidden prototype.

Note that this is not the prototype of This() on which the accessor referencing this callback was found (which in V8 internally is often referred to as holder [sic]).

◆ IsConstructCall()

template<typename T >
bool v8::FunctionCallbackInfo< T >::IsConstructCall
inline

Indicates whether this is a regular call or a construct call.

◆ Length()

template<typename T >
int v8::FunctionCallbackInfo< T >::Length
inline

The number of available arguments.

Examples
process.cc, and shell.cc.

◆ NewTarget()

template<typename T >
Local< Value > v8::FunctionCallbackInfo< T >::NewTarget
inline

For construct calls, this returns the "new.target" value.

◆ operator[]()

template<typename T >
Local< Value > v8::FunctionCallbackInfo< T >::operator[] ( int  i) const
inline

Accessor for the available arguments.

Here is the call graph for this function:

◆ This()

template<typename T >
Local< Object > v8::FunctionCallbackInfo< T >::This
inline

Returns the receiver. This corresponds to the "this" value.

Friends And Related Function Documentation

◆ debug::ConsoleCallArguments

template<typename T >
friend class debug::ConsoleCallArguments
friend

◆ internal::CustomArguments< FunctionCallbackInfo >

template<typename T >
friend class internal::CustomArguments< FunctionCallbackInfo >
friend

◆ internal::FunctionCallbackArguments

template<typename T >
friend class internal::FunctionCallbackArguments
friend

Member Data Documentation

◆ implicit_args_

template<typename T >
internal::Object** v8::FunctionCallbackInfo< T >::implicit_args_
protected

◆ kArgsLength

template<typename T >
const int v8::FunctionCallbackInfo< T >::kArgsLength = 8
static

◆ kCalleeIndex

template<typename T >
const int v8::FunctionCallbackInfo< T >::kCalleeIndex = 5
staticprotected

◆ kContextSaveIndex

template<typename T >
const int v8::FunctionCallbackInfo< T >::kContextSaveIndex = 6
staticprotected

◆ kDataIndex

template<typename T >
const int v8::FunctionCallbackInfo< T >::kDataIndex = 4
staticprotected

◆ kHolderIndex

template<typename T >
const int v8::FunctionCallbackInfo< T >::kHolderIndex = 0
staticprotected

◆ kIsolateIndex

template<typename T >
const int v8::FunctionCallbackInfo< T >::kIsolateIndex = 1
staticprotected

◆ kNewTargetIndex

template<typename T >
const int v8::FunctionCallbackInfo< T >::kNewTargetIndex = 7
staticprotected

◆ kReturnValueDefaultValueIndex

template<typename T >
const int v8::FunctionCallbackInfo< T >::kReturnValueDefaultValueIndex = 2
staticprotected

◆ kReturnValueIndex

template<typename T >
const int v8::FunctionCallbackInfo< T >::kReturnValueIndex = 3
staticprotected

◆ length_

template<typename T >
int v8::FunctionCallbackInfo< T >::length_
protected

◆ values_

template<typename T >
internal::Object** v8::FunctionCallbackInfo< T >::values_
protected

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