253 General = 0 |
253 General = 0 |
254 Static = 1 |
254 Static = 1 |
255 Class = 2 |
255 Class = 2 |
256 |
256 |
257 def __init__(self, module, name, file, lineno, signature='', separator=',', |
257 def __init__(self, module, name, file, lineno, signature='', separator=',', |
258 modifierType=General): |
258 modifierType=General, annotation=""): |
259 """ |
259 """ |
260 Constructor |
260 Constructor |
261 |
261 |
262 @param module name of the module containing this function |
262 @param module name of the module containing this function |
263 @param name name of this function |
263 @param name name of this function |
264 @param file filename containing this class |
264 @param file filename containing this class |
265 @param lineno linenumber of the class definition |
265 @param lineno linenumber of the class definition |
266 @param signature parameterlist of the method |
266 @param signature parameterlist of the method |
267 @param separator string separating the parameters |
267 @param separator string separating the parameters |
268 @param modifierType type of the function |
268 @param modifierType type of the function |
|
269 @param annotation return annotation |
269 """ |
270 """ |
270 ClbrBase.__init__(self, module, name, file, lineno) |
271 ClbrBase.__init__(self, module, name, file, lineno) |
271 self.parameters = [e.strip() for e in signature.split(separator)] |
272 self.parameters = [e.strip() for e in signature.split(separator)] |
272 self.modifier = modifierType |
273 self.modifier = modifierType |
|
274 self.annotation = annotation |
273 |
275 |
274 |
276 |
275 class Coding(ClbrBase): |
277 class Coding(ClbrBase): |
276 """ |
278 """ |
277 Class to represent a source coding. |
279 Class to represent a source coding. |