-
Notifications
You must be signed in to change notification settings - Fork 2
/
DocMethod.h
63 lines (46 loc) · 1.95 KB
/
DocMethod.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
63
/**
<abstract>Methods in the doc element tree.</abstract>
Copyright (C) 2008 Nicolas Roard
Author: Nicolas Roard
Author: Quentin Mathe <[email protected]>
Date: June 2008
License: Modified BSD (see COPYING)
*/
#import <Foundation/Foundation.h>
#import <EtoileFoundation/EtoileFoundation.h>
#import <SourceCodeKit/SourceCodeKit.h>
#import "GSDocParser.h"
#import "DocElement.h"
/** @group Doc Element Tree
A DocMethod object represents a method in the documentation element tree. */
@interface DocMethod : DocSubroutine <GSDocParserDelegate>
{
@private
BOOL isClassMethod;
NSMutableArray *selectorKeywords;
}
/** @taskunit Method Kind */
/** Returns NO when the receiver represents an instance method, otherwise
returns YES. */
- (BOOL) isClassMethod;
/** @taskunit Link Generation */
/** Returns a valid ETDoc method link, relative to the current class in the
documentation page, that can be turned into a real link in the output
representation such as HTML.
For example, would return <em>-refMarkup</em> for this method.
-[DocElement insertLinksWithDocIndex:forString:] can detect the links returned
by these refMarkupXXX methods and hand them to a HTMLDocIndex, which in turn
will return a HTML link to replace this markup. */
- (NSString *) refMarkup;
/** Returns a valid ETDoc method link, relative to the given class, that can be
turned into a real link in the output representation such as HTML.
For example, would return <em>-[DocMethod refMarkup]</em> for this method.
See also -refMarkup. */
- (NSString *) refMarkupWithClassName: (NSString *)aClassName;
/** Returns a valid ETDoc method link, relative to the given protocol, that can
be turned into a real link in the output representation such as HTML.
For example, would return <em>-[(DocMethod) refMarkup]</em> for this method.
See also -refMarkup. */
- (NSString *) refMarkupWithProtocolName: (NSString *)aProtocolName;
- (void) parseProgramComponent: (SCKMethod *)programComponent;
@end