v8  10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
Extension Class Reference

#include <v8-extension.h>

Public Member Functions

 Extension (const char *name, const char *source=nullptr, int dep_count=0, const char **deps=nullptr, int source_length=-1)
 
virtual ~Extension ()
 
virtual Local< FunctionTemplateGetNativeFunctionTemplate (Isolate *isolate, Local< String > name)
 
const char * name () const
 
size_t source_length () const
 
const String::ExternalOneByteStringResourcesource () const
 
int dependency_count () const
 
const char ** dependencies () const
 
void set_auto_enable (bool value)
 
bool auto_enable ()
 
 Extension (const Extension &)=delete
 
void operator= (const Extension &)=delete
 

Detailed Description

Ignore

Definition at line 23 of file v8-extension.h.

Constructor & Destructor Documentation

◆ Extension() [1/2]

Extension ( const char *  name,
const char *  source = nullptr,
int  dep_count = 0,
const char **  deps = nullptr,
int  source_length = -1 
)

◆ ~Extension()

virtual ~Extension ( )
inlinevirtual

Definition at line 29 of file v8-extension.h.

◆ Extension() [2/2]

Extension ( const Extension )
delete

Member Function Documentation

◆ auto_enable()

bool auto_enable ( )
inline

Definition at line 43 of file v8-extension.h.

◆ dependencies()

const char** dependencies ( ) const
inline

Definition at line 41 of file v8-extension.h.

◆ dependency_count()

int dependency_count ( ) const
inline

Definition at line 40 of file v8-extension.h.

◆ GetNativeFunctionTemplate()

virtual Local<FunctionTemplate> GetNativeFunctionTemplate ( Isolate isolate,
Local< String name 
)
inlinevirtual

Definition at line 30 of file v8-extension.h.

References HandleScope::Local, and Local< T >::Local().

◆ name()

const char* name ( ) const
inline

Definition at line 35 of file v8-extension.h.

◆ operator=()

void operator= ( const Extension )
delete

◆ set_auto_enable()

void set_auto_enable ( bool  value)
inline

Definition at line 42 of file v8-extension.h.

◆ source()

const String::ExternalOneByteStringResource* source ( ) const
inline

Definition at line 37 of file v8-extension.h.

◆ source_length()

size_t source_length ( ) const
inline

Definition at line 36 of file v8-extension.h.


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