Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes
symtable.SymbolTableFactory Class Reference

List of all members.

Public Member Functions

def __init__
def new
def __call__

Private Attributes

 __memo

Detailed Description

Definition at line 19 of file symtable.py.


Constructor & Destructor Documentation

Definition at line 20 of file symtable.py.

Here is the caller graph for this function:


Member Function Documentation

def symtable.SymbolTableFactory.__call__ (   self,
  table,
  filename 
)

Definition at line 30 of file symtable.py.

00030 
00031     def __call__(self, table, filename):
00032         key = table, filename
00033         obj = self.__memo.get(key, None)
00034         if obj is None:
00035             obj = self.__memo[key] = self.new(table, filename)
00036         return obj

Here is the call graph for this function:

def symtable.SymbolTableFactory.new (   self,
  table,
  filename 
)

Definition at line 23 of file symtable.py.

00023 
00024     def new(self, table, filename):
00025         if table.type == _symtable.TYPE_FUNCTION:
00026             return Function(table, filename)
00027         if table.type == _symtable.TYPE_CLASS:
00028             return Class(table, filename)
00029         return SymbolTable(table, filename)

Here is the caller graph for this function:


Member Data Documentation

Definition at line 21 of file symtable.py.


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