Mercurial > hg > orthanc-python
comparison CodeAnalysis/GenerateOrthancSDK.py @ 185:7e8085f80df5 java-code-model
simplification
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Jul 2024 15:51:35 +0200 |
parents | f34f3a149c22 |
children | 0cb98433a382 |
comparison
equal
deleted
inserted
replaced
184:f34f3a149c22 | 185:7e8085f80df5 |
---|---|
370 | 370 |
371 for m in c['methods']: | 371 for m in c['methods']: |
372 g = FormatFunction(m) | 372 g = FormatFunction(m) |
373 if g != None: | 373 if g != None: |
374 g['self'] = ', self->object_' | 374 g['self'] = ', self->object_' |
375 g['is_method'] = True | |
376 methods.append(g) | 375 methods.append(g) |
377 | 376 |
378 custom_methods = [] | 377 custom_methods = [] |
379 | 378 |
380 if c['name'] in CUSTOM_METHODS: | 379 if c['name'] in CUSTOM_METHODS: |
381 for custom_method in CUSTOM_METHODS[c['name']]: | 380 for custom_method in CUSTOM_METHODS[c['name']]: |
382 custom_method['is_method'] = True | 381 custom_method['self'] = True # Indicates that this is a method |
383 custom_method['documentation'] = DocumentFunction(custom_method) | 382 custom_method['documentation'] = DocumentFunction(custom_method) |
384 custom_methods.append(custom_method) | 383 custom_methods.append(custom_method) |
385 | 384 |
386 classes.append({ | 385 classes.append({ |
387 'class_name' : c['name'], | 386 'class_name' : c['name'], |