Table of Contents

Class: ModuleInfo HappyDoc-r0_7_1/parseinfo.py

Information gatherer for source code modules.

Extract information about a source module from its parse tree.

Base Classes   
SuiteInfoBase
SuiteFuncInfo
Methods   
__init__
_extractImportedModules
getFileName
getImportInfo
getImportNames
  __init__ 
__init__ (
        self,
        parent=None,
        tree=None,
        name='<string>',
        fileName=None,
        commentInfo={},
        )

Initialize the info extractor.

Parameters:

tree

parse tree from which to extract information

name

name of the module

fileName

name of the file containing the module

commentInfo

comments extracted from the file

  _extractImportedModules 
_extractImportedModules ( self,  tree )

Returns modules imported by code in tree.

Scan the parse tree for import statements and return the names of all modules imported.

  getFileName 
getFileName ( self )

Returns the name of the file containing the module.

  getImportInfo 
getImportInfo ( self,  name )

For a module, returns the list of symbols which were imported.

  getImportNames 
getImportNames ( self )

Returns a list of modules from which symbols are imported.


Table of Contents

This document was automatically generated on Sat Sep 9 20:27:32 2000 by HappyDoc version r0_7_1