v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DeclarationContext Class Reference
Inheritance diagram for DeclarationContext:

Public Member Functions

 DeclarationContext ()
 
virtual ~DeclarationContext ()
 
void Check (const char *source, int get, int set, int has, Expectations expectations, v8::Handle< Value > value=Local< Value >())
 
int get_count () const
 
int set_count () const
 
int query_count () const
 

Protected Member Functions

virtual v8::Handle< ValueGet (Local< String > key)
 
virtual v8::Handle< ValueSet (Local< String > key, Local< Value > value)
 
virtual v8::Handle< IntegerQuery (Local< String > key)
 
void InitializeIfNeeded ()
 
virtual void PostInitializeContext (Handle< Context > context)
 
virtual Local< ObjectTemplateGetHolder (Local< FunctionTemplate > function)
 
v8::Isolateisolate () const
 

Static Protected Member Functions

static void HandleGet (Local< String > key, const v8::PropertyCallbackInfo< v8::Value > &info)
 
static void HandleSet (Local< String > key, Local< Value > value, const v8::PropertyCallbackInfo< v8::Value > &info)
 
static void HandleQuery (Local< String > key, const v8::PropertyCallbackInfo< v8::Integer > &info)
 

Detailed Description

Definition at line 49 of file test-decls.cc.

Constructor & Destructor Documentation

Definition at line 113 of file test-decls.cc.

virtual ~DeclarationContext ( )
inlinevirtual

Definition at line 53 of file test-decls.cc.

References CcTest::isolate(), and Local< T >::New().

Member Function Documentation

v8::Handle< Value > Get ( Local< String key)
protectedvirtual

Definition at line 214 of file test-decls.cc.

Referenced by HandleGet().

int get_count ( ) const
inline

Definition at line 68 of file test-decls.cc.

Referenced by Check().

virtual Local<ObjectTemplate> GetHolder ( Local< FunctionTemplate function)
inlineprotectedvirtual
void HandleGet ( Local< String key,
const v8::PropertyCallbackInfo< v8::Value > &  info 
)
staticprotected
void HandleQuery ( Local< String key,
const v8::PropertyCallbackInfo< v8::Integer > &  info 
)
staticprotected
void HandleSet ( Local< String key,
Local< Value value,
const v8::PropertyCallbackInfo< v8::Value > &  info 
)
staticprotected
virtual void PostInitializeContext ( Handle< Context context)
inlineprotectedvirtual

Reimplemented in ExistsInHiddenPrototypeContext.

Definition at line 81 of file test-decls.cc.

Referenced by InitializeIfNeeded().

int query_count ( ) const
inline

Definition at line 70 of file test-decls.cc.

Referenced by Check().

v8::Handle< Value > Set ( Local< String key,
Local< Value value 
)
protectedvirtual

Definition at line 219 of file test-decls.cc.

Referenced by HandleSet().

int set_count ( ) const
inline

Definition at line 69 of file test-decls.cc.

Referenced by Check().


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