220 |
220 |
221 class Function(ClbrBase): |
221 class Function(ClbrBase): |
222 """ |
222 """ |
223 Class to represent a function or method. |
223 Class to represent a function or method. |
224 """ |
224 """ |
225 def __init__(self, module, name, file, lineno, signature='', separator=','): |
225 General = 0 |
|
226 Static = 1 |
|
227 Class = 2 |
|
228 |
|
229 def __init__(self, module, name, file, lineno, signature='', separator=',', |
|
230 modifierType=General): |
226 """ |
231 """ |
227 Constructor |
232 Constructor |
228 |
233 |
229 @param module name of the module containing this function |
234 @param module name of the module containing this function |
230 @param name name of this function |
235 @param name name of this function |
231 @param file filename containing this class |
236 @param file filename containing this class |
232 @param lineno linenumber of the class definition |
237 @param lineno linenumber of the class definition |
233 @param signature parameterlist of the method |
238 @param signature parameterlist of the method |
234 @param separator string separating the parameters |
239 @param separator string separating the parameters |
|
240 @param modifierType type of the function |
235 """ |
241 """ |
236 ClbrBase.__init__(self, module, name, file, lineno) |
242 ClbrBase.__init__(self, module, name, file, lineno) |
237 self.parameters = [e.strip() for e in signature.split(separator)] |
243 self.parameters = [e.strip() for e in signature.split(separator)] |
|
244 self.modifier = modifierType |
238 |
245 |
239 |
246 |
240 class Coding(ClbrBase): |
247 class Coding(ClbrBase): |
241 """ |
248 """ |
242 Class to represent a source coding. |
249 Class to represent a source coding. |