-
Notifications
You must be signed in to change notification settings - Fork 28
/
CDOCModule.m
43 lines (32 loc) · 830 Bytes
/
CDOCModule.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
// -*- mode: ObjC -*-
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-2019 Steve Nygard.
#import "CDOCModule.h"
#import "CDObjectiveC1Processor.h"
#import "CDOCSymtab.h"
@implementation CDOCModule
{
uint32_t _version;
NSString *_name;
CDOCSymtab *_symtab;
}
- (id)init;
{
if ((self = [super init])) {
_version = 0;
_name = nil;
_symtab = nil;
}
return self;
}
#pragma mark - Debugging
- (NSString *)description;
{
return [NSString stringWithFormat:@"[%@] name: %@, version: %u, symtab: %@", NSStringFromClass([self class]), self.name, self.version, self.symtab];
}
#pragma mark -
- (NSString *)formattedString;
{
return [NSString stringWithFormat:@"//\n// %@\n//\n", self.name];
}
@end