forked from nygard/class-dump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CDOCSymtab.m
56 lines (40 loc) · 1.03 KB
/
CDOCSymtab.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// -*- mode: ObjC -*-
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2011 Steve Nygard.
#import "CDOCSymtab.h"
#import "CDClassDump.h"
#import "CDOCCategory.h"
#import "CDOCClass.h"
#import "CDSymbolReferences.h"
@implementation CDOCSymtab
- (id)init;
{
if ((self = [super init])) {
classes = [[NSMutableArray alloc] init];
categories = [[NSMutableArray alloc] init];
}
return self;
}
- (void)dealloc;
{
[classes release];
[categories release];
[super dealloc];
}
#pragma mark - Debugging
- (NSString *)description;
{
return [NSString stringWithFormat:@"[%@] classes: %@, categories: %@", NSStringFromClass([self class]), self.classes, self.categories];
}
#pragma mark -
@synthesize classes;
- (void)addClass:(CDOCClass *)aClass;
{
[self.classes addObject:aClass];
}
@synthesize categories;
- (void)addCategory:(CDOCCategory *)aCategory;
{
[self.categories addObject:aCategory];
}
@end