OLD | NEW |
(Empty) | |
| 1 // -*- mode: ObjC -*- |
| 2 |
| 3 // This file is part of class-dump, a utility for examining the Objective-C seg
ment of Mach-O files. |
| 4 // Copyright (C) 1997-1998, 2000-2001, 2004-2010 Steve Nygard. |
| 5 |
| 6 #import <Foundation/Foundation.h> |
| 7 |
| 8 @class CDClassDump, CDStructureTable, CDSymbolReferences, CDType, CDTypeFormatte
r; |
| 9 |
| 10 @interface CDTypeController : NSObject |
| 11 { |
| 12 CDClassDump *nonretained_classDump; // passed during formatting, to get at o
ptions. |
| 13 |
| 14 CDTypeFormatter *ivarTypeFormatter; |
| 15 CDTypeFormatter *methodTypeFormatter; |
| 16 CDTypeFormatter *propertyTypeFormatter; |
| 17 CDTypeFormatter *structDeclarationTypeFormatter; |
| 18 |
| 19 CDStructureTable *structureTable; |
| 20 CDStructureTable *unionTable; |
| 21 } |
| 22 |
| 23 - (id)initWithClassDump:(CDClassDump *)aClassDump; |
| 24 - (void)dealloc; |
| 25 |
| 26 @property(readonly) CDTypeFormatter *ivarTypeFormatter; |
| 27 @property(readonly) CDTypeFormatter *methodTypeFormatter; |
| 28 @property(readonly) CDTypeFormatter *propertyTypeFormatter; |
| 29 @property(readonly) CDTypeFormatter *structDeclarationTypeFormatter; |
| 30 |
| 31 - (CDType *)typeFormatter:(CDTypeFormatter *)aFormatter replacementForType:(CDTy
pe *)aType; |
| 32 - (NSString *)typeFormatter:(CDTypeFormatter *)aFormatter typedefNameForStruct:(
CDType *)structType level:(NSUInteger)level; |
| 33 |
| 34 - (void)appendStructuresToString:(NSMutableString *)resultString symbolReference
s:(CDSymbolReferences *)symbolReferences; |
| 35 |
| 36 - (void)generateTypedefNames; |
| 37 - (void)generateMemberNames; |
| 38 |
| 39 // Run phase 1+ |
| 40 - (void)workSomeMagic; |
| 41 |
| 42 // Phase 0 |
| 43 - (void)phase0RegisterStructure:(CDType *)aStructure usedInMethod:(BOOL)isUsedIn
Method; |
| 44 - (void)endPhase:(NSUInteger)phase; |
| 45 |
| 46 // Phase 1 |
| 47 - (void)startPhase1; |
| 48 - (void)phase1RegisterStructure:(CDType *)aStructure; |
| 49 |
| 50 // Phase 2 |
| 51 - (void)startPhase2; |
| 52 |
| 53 // Phase 3 |
| 54 - (void)startPhase3; |
| 55 |
| 56 - (BOOL)shouldShowName:(NSString *)name; |
| 57 - (BOOL)shouldShowIvarOffsets; |
| 58 - (BOOL)shouldShowMethodAddresses; |
| 59 - (BOOL)targetArchUses64BitABI; |
| 60 |
| 61 - (CDType *)phase2ReplacementForType:(CDType *)type; |
| 62 |
| 63 - (void)phase3RegisterStructure:(CDType *)aStructure; |
| 64 - (CDType *)phase3ReplacementForType:(CDType *)type; |
| 65 |
| 66 - (BOOL)shouldExpandType:(CDType *)type; |
| 67 - (NSString *)typedefNameForType:(CDType *)type; |
| 68 |
| 69 @end |
OLD | NEW |