forked from nygard/class-dump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCDOCInstanceVariable.h
24 lines (15 loc) · 934 Bytes
/
CDOCInstanceVariable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// -*- 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-2015 Steve Nygard.
@class CDType, CDTypeController;
@interface CDOCInstanceVariable : NSObject
- (id)initWithName:(NSString *)name typeString:(NSString *)typeString offset:(NSUInteger)offset;
@property (readonly) NSString *name;
@property (readonly) NSString *typeString;
@property (readonly) NSUInteger offset;
// Lazily parses the typeString. Returns nil and sets the parseError if parsing failed. Does not try to parse again in the event of an error.
@property (nonatomic, readonly) CDType *type;
// This is set after the typeString has been parsed if there was an error. Doesn't trigger parsing.
@property (readonly) NSError *parseError;
- (void)appendToString:(NSMutableString *)resultString typeController:(CDTypeController *)typeController;
@end