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 "CDVisitor.h" |
| 7 |
| 8 #import "CDClassDump.h" |
| 9 #import "CDObjectiveC1Processor.h" |
| 10 #import "CDOCProperty.h" |
| 11 #import "CDVisitorPropertyState.h" |
| 12 |
| 13 @implementation CDVisitor |
| 14 |
| 15 - (id)init; |
| 16 { |
| 17 if ([super init] == nil) |
| 18 return nil; |
| 19 |
| 20 classDump = nil; |
| 21 |
| 22 return self; |
| 23 } |
| 24 |
| 25 - (void)dealloc; |
| 26 { |
| 27 [classDump release]; |
| 28 |
| 29 [super dealloc]; |
| 30 } |
| 31 |
| 32 - (CDClassDump *)classDump; |
| 33 { |
| 34 return classDump; |
| 35 } |
| 36 |
| 37 - (void)setClassDump:(CDClassDump *)newClassDump; |
| 38 { |
| 39 if (newClassDump == classDump) |
| 40 return; |
| 41 |
| 42 [classDump release]; |
| 43 classDump = [newClassDump retain]; |
| 44 } |
| 45 |
| 46 - (void)willBeginVisiting; |
| 47 { |
| 48 } |
| 49 |
| 50 - (void)didEndVisiting; |
| 51 { |
| 52 } |
| 53 |
| 54 // Called before visiting. |
| 55 - (void)willVisitObjectiveCProcessor:(CDObjectiveCProcessor *)aProcessor; |
| 56 { |
| 57 } |
| 58 |
| 59 // This gets called before visiting the children, but only if it has children it
will visit. |
| 60 - (void)visitObjectiveCProcessor:(CDObjectiveCProcessor *)aProcessor; |
| 61 { |
| 62 } |
| 63 |
| 64 - (void)willVisitPropertiesOfProtocol:(CDOCProtocol *)aProtocol; |
| 65 { |
| 66 } |
| 67 |
| 68 - (void)didVisitPropertiesOfProtocol:(CDOCProtocol *)aProtocol; |
| 69 { |
| 70 } |
| 71 |
| 72 - (void)willVisitOptionalMethods; |
| 73 { |
| 74 } |
| 75 |
| 76 - (void)didVisitOptionalMethods; |
| 77 { |
| 78 } |
| 79 |
| 80 // Called after visiting. |
| 81 - (void)didVisitObjectiveCProcessor:(CDObjectiveCProcessor *)aProcessor; |
| 82 { |
| 83 } |
| 84 |
| 85 - (void)willVisitProtocol:(CDOCProtocol *)aProtocol; |
| 86 { |
| 87 } |
| 88 |
| 89 - (void)didVisitProtocol:(CDOCProtocol *)aProtocol; |
| 90 { |
| 91 } |
| 92 |
| 93 - (void)willVisitClass:(CDOCClass *)aClass; |
| 94 { |
| 95 } |
| 96 |
| 97 - (void)didVisitClass:(CDOCClass *)aClass; |
| 98 { |
| 99 } |
| 100 |
| 101 - (void)willVisitIvarsOfClass:(CDOCClass *)aClass; |
| 102 { |
| 103 } |
| 104 |
| 105 - (void)didVisitIvarsOfClass:(CDOCClass *)aClass; |
| 106 { |
| 107 } |
| 108 |
| 109 - (void)willVisitPropertiesOfClass:(CDOCClass *)aClass; |
| 110 { |
| 111 } |
| 112 |
| 113 - (void)didVisitPropertiesOfClass:(CDOCClass *)aClass; |
| 114 { |
| 115 } |
| 116 |
| 117 - (void)willVisitCategory:(CDOCCategory *)aCategory; |
| 118 { |
| 119 } |
| 120 |
| 121 - (void)didVisitCategory:(CDOCCategory *)aCategory; |
| 122 { |
| 123 } |
| 124 |
| 125 - (void)willVisitPropertiesOfCategory:(CDOCCategory *)aCategory; |
| 126 { |
| 127 } |
| 128 |
| 129 - (void)didVisitPropertiesOfCategory:(CDOCCategory *)aCategory; |
| 130 { |
| 131 } |
| 132 |
| 133 - (void)visitClassMethod:(CDOCMethod *)aMethod; |
| 134 { |
| 135 } |
| 136 |
| 137 - (void)visitInstanceMethod:(CDOCMethod *)aMethod propertyState:(CDVisitorProper
tyState *)propertyState; |
| 138 { |
| 139 } |
| 140 |
| 141 - (void)visitIvar:(CDOCIvar *)anIvar; |
| 142 { |
| 143 } |
| 144 |
| 145 - (void)visitProperty:(CDOCProperty *)aProperty; |
| 146 { |
| 147 } |
| 148 |
| 149 - (void)visitRemainingProperties:(CDVisitorPropertyState *)propertyState; |
| 150 { |
| 151 } |
| 152 |
| 153 @end |
OLD | NEW |