Public Member Functions | Public Attributes

CodeBlock Class Reference

Search for all occurrences

#include <codetree.h>

Inheritance diagram for CodeBlock:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  CodeBlock ()
  ~CodeBlock ()
void  init (Value *code, HashTable *local_scope)
void  init_locals ()
void  collect ()
void  gc_trace ()
void  sprin1 (CharStream *s)
void  add_local ()
Value call_handler (Value *handler_or_name, Value **arg_list, int count)
Value get_handler (Value *name)
Value eval ()
Value get_property (Value **arg_list, int count)
Value set_property (Value **arg_list, int count)
void  dump_local_vars_and_externals (int indentLevel)

Public Attributes

Value code
Value **  locals
int  local_count
HashTable *  local_scope
HashTable *  handlers
BOOL  initialized
Name *  name

Constructor & Destructor Documentation

CodeBlock ( )
~CodeBlock ( )

Member Function Documentation

void init ( Value code,
HashTable *  local_scope 
)
void init_locals ( )
void collect ( ) [virtual]
void gc_trace ( ) [virtual]
void sprin1 ( CharStream *  s ) [virtual]

Reimplemented from Value.

void add_local ( )
Value* call_handler ( Value handler_or_name,
Value **  arg_list,
int  count 
)
Value* get_handler ( Value name )
Value* eval ( ) [virtual]

Reimplemented from Value.

Value* get_property ( Value **  arg_list,
int  count 
) [virtual]

Reimplemented from Value.

Value* set_property ( Value **  arg_list,
int  count 
) [virtual]

Reimplemented from Value.

void dump_local_vars_and_externals ( int  indentLevel )

Member Data Documentation

HashTable* local_scope
HashTable* handlers
Name* name

CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock
CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock CodeBlock