V8 API Reference Guide generated from the header files
|
#include <v8.h>
Public Member Functions | |
V8_INLINE int | Length () const |
V8_INLINE Local< Value > | operator[] (int i) const |
V8_INLINE Local< Object > | This () const |
V8_INLINE Local< Object > | Holder () const |
V8_INLINE Local< Value > | NewTarget () const |
V8_INLINE bool | IsConstructCall () const |
V8_INLINE Local< Value > | Data () const |
V8_INLINE Isolate * | GetIsolate () const |
V8_INLINE ReturnValue< T > | GetReturnValue () const |
Static Public Attributes | |
static const int | kArgsLength = 6 |
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_ |
Friends | |
class | internal::FunctionCallbackArguments |
class | internal::CustomArguments< FunctionCallbackInfo > |
class | debug::ConsoleCallArguments |
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.
Local< Value > v8::FunctionCallbackInfo< T >::Data | ( | ) | const |
The data argument specified when creating the callback.
Isolate * v8::FunctionCallbackInfo< T >::GetIsolate | ( | ) | const |
The current Isolate.
ReturnValue< T > v8::FunctionCallbackInfo< T >::GetReturnValue | ( | ) | const |
The ReturnValue for the call.
Local< Object > v8::FunctionCallbackInfo< T >::Holder | ( | ) | const |
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]).
bool v8::FunctionCallbackInfo< T >::IsConstructCall | ( | ) | const |
Indicates whether this is a regular call or a construct call.
int v8::FunctionCallbackInfo< T >::Length | ( | ) | const |
The number of available arguments.
Local< Value > v8::FunctionCallbackInfo< T >::NewTarget | ( | ) | const |
For construct calls, this returns the "new.target" value.
Local< Value > v8::FunctionCallbackInfo< T >::operator[] | ( | int | i | ) | const |
Accessor for the available arguments.
Local< Object > v8::FunctionCallbackInfo< T >::This | ( | ) | const |
Returns the receiver. This corresponds to the "this" value.