-
Notifications
You must be signed in to change notification settings - Fork 133
/
Copy pathXCClassDefinition.h
executable file
·62 lines (45 loc) · 1.46 KB
/
XCClassDefinition.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
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
57
58
59
60
61
62
////////////////////////////////////////////////////////////////////////////////
//
// JASPER BLUES
// Copyright 2012 - 2013 Jasper Blues
// All Rights Reserved.
//
// NOTICE: Jasper Blues permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
#import <Foundation/Foundation.h>
#import <XcodeEditor/XCAbstractDefinition.h>
typedef enum
{
ObjectiveC,
ObjectiveCPlusPlus,
CPlusPlus,
} ClassDefinitionLanguage;
@interface XCClassDefinition : XCAbstractDefinition
{
NSString* _className;
NSString* _header;
NSString* _source;
@private
ClassDefinitionLanguage _language;
}
@property(strong, nonatomic, readonly) NSString* className;
@property(nonatomic, strong) NSString* header;
@property(nonatomic, strong) NSString* source;
+ (XCClassDefinition*)classDefinitionWithName:(NSString*)fileName;
+ (XCClassDefinition*)classDefinitionWithName:(NSString*)className language:(ClassDefinitionLanguage)language;
/**
* Initializes a new objective-c class definition.
*/
- (id)initWithName:(NSString*)fileName;
/**
* Initializes a new class definition with the specified language.
*/
- (id)initWithName:(NSString*)className language:(ClassDefinitionLanguage)language;
- (BOOL)isObjectiveC;
- (BOOL)isObjectiveCPlusPlus;
- (BOOL)isCPlusPlus;
- (NSString*)headerFileName;
- (NSString*)sourceFileName;
@end