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, CDSymbolReferences, CDTypeController; |
| 9 @class CDVisitor, CDVisitorPropertyState; |
| 10 @class CDOCMethod, CDOCProperty; |
| 11 |
| 12 @interface CDOCProtocol : NSObject |
| 13 { |
| 14 NSString *name; |
| 15 NSMutableArray *protocols; |
| 16 NSMutableArray *classMethods; |
| 17 NSMutableArray *instanceMethods; |
| 18 NSMutableArray *optionalClassMethods; |
| 19 NSMutableArray *optionalInstanceMethods; |
| 20 NSMutableArray *properties; |
| 21 |
| 22 NSMutableSet *adoptedProtocolNames; |
| 23 } |
| 24 |
| 25 - (id)init; |
| 26 - (void)dealloc; |
| 27 |
| 28 - (NSString *)name; |
| 29 - (void)setName:(NSString *)newName; |
| 30 |
| 31 - (NSArray *)protocols; |
| 32 - (void)addProtocol:(CDOCProtocol *)aProtocol; |
| 33 - (void)removeProtocol:(CDOCProtocol *)aProtocol; |
| 34 |
| 35 - (NSArray *)classMethods; |
| 36 - (void)addClassMethod:(CDOCMethod *)method; |
| 37 |
| 38 - (NSArray *)instanceMethods; |
| 39 - (void)addInstanceMethod:(CDOCMethod *)method; |
| 40 |
| 41 - (NSArray *)optionalClassMethods; |
| 42 - (void)addOptionalClassMethod:(CDOCMethod *)method; |
| 43 |
| 44 - (NSArray *)optionalInstanceMethods; |
| 45 - (void)addOptionalInstanceMethod:(CDOCMethod *)method; |
| 46 |
| 47 - (NSArray *)properties; |
| 48 - (void)addProperty:(CDOCProperty *)property; |
| 49 |
| 50 - (BOOL)hasMethods; |
| 51 |
| 52 - (NSString *)description; |
| 53 - (void)registerTypesWithObject:(CDTypeController *)typeController phase:(NSUInt
eger)phase; |
| 54 - (void)registerTypesFromMethods:(NSArray *)methods withObject:(CDTypeController
*)typeController phase:(NSUInteger)phase; |
| 55 |
| 56 - (NSString *)sortableName; |
| 57 - (NSComparisonResult)ascendingCompareByName:(CDOCProtocol *)otherProtocol; |
| 58 |
| 59 - (NSString *)findTag:(CDSymbolReferences *)symbolReferences; |
| 60 |
| 61 - (void)recursivelyVisit:(CDVisitor *)aVisitor; |
| 62 - (void)visitMethods:(CDVisitor *)aVisitor propertyState:(CDVisitorPropertyState
*)propertyState; |
| 63 - (void)visitProperties:(CDVisitor *)aVisitor; |
| 64 |
| 65 @end |
OLD | NEW |