SPRAAK
Public Member Functions
spr_pydoc_filter.ModuleInfo Class Reference

Represents a parsed python file. More...

+ Inheritance diagram for spr_pydoc_filter.ModuleInfo:
+ Collaboration diagram for spr_pydoc_filter.ModuleInfo:

Public Member Functions

def __init__ (self, fname)
 Constructor. More...
 
def getFileName (self)
 Return the name of the parsed file. More...
 
def getName (self)
 Return the name of the module. More...
 
def getFunctions (self)
 Returns a list of all functions defined at the top level of the parse tree. More...
 
def getClasses (self)
 Returns a list of all classes defined at the top level of the parse tree. More...
 
def getComments (self)
 Returns a list of all comment lines found in the source code. More...
 

Detailed Description

Represents a parsed python file.

Constructor & Destructor Documentation

§ __init__()

def spr_pydoc_filter.ModuleInfo.__init__ (   self,
  fname 
)

Constructor.

Parameters
selfThe callee object.
fnameThe name of the file to parse.

Member Function Documentation

§ getFileName()

def spr_pydoc_filter.ModuleInfo.getFileName (   self)

Return the name of the parsed file.

Parameters
selfThe callee object.

§ getName()

def spr_pydoc_filter.ModuleInfo.getName (   self)

Return the name of the module.

Parameters
selfThe callee object.

§ getFunctions()

def spr_pydoc_filter.ModuleInfo.getFunctions (   self)

Returns a list of all functions defined at the top level of the parse tree.

Parameters
selfThe callee object.

§ getClasses()

def spr_pydoc_filter.ModuleInfo.getClasses (   self)

Returns a list of all classes defined at the top level of the parse tree.

Parameters
selfThe callee object.

§ getComments()

def spr_pydoc_filter.ModuleInfo.getComments (   self)

Returns a list of all comment lines found in the source code.

Parameters
selfThe callee object.