GBCommentComponentsProvider Class Reference
| Inherits from | NSObject |
| Declared in | GBCommentComponentsProvider.h GBCommentComponentsProvider.m |
Overview
Provides comment keywords and helpers for the rest of the application.
The main responsibility of the class is to determine if a string contains special section definition. In addition, they also return section parameters. This encapsulates keywords and sections handling and simplifies the rest of the application.
Tasks
Initialization & disposal
-
+ providerReturns a new autoreleasedGBCommentComponentsProviderinstance.
Lists definitions
-
orderedListRegexReturns the regex used for matching ordered lists with capture 1 containing lists indent and capture 2 string value. -
unorderedListRegexReturns the regex used for matching unordered lists with capture 1 containing list indent and capture 2 string value.
Sections definitions
-
warningSectionRegexReturns the regex used for matching warning section with capture 1 containing description. -
bugSectionRegexReturns the regex used for matching bug section with capture 1 containing description. -
exampleSectionRegexReturns the regex used for matching example section with capture 1 containing whitespace prefix and capture 2 example text.
Method specific definitions
-
methodGroupRegexReturns the regex used for matching method groups with capture 1 containing section name. -
argumentsMatchingRegexReturns the regex used for matching different method parameter descriptions within the paragraph. -
nextArgumentRegexReturns the regex used for finding next method parameter description within the paragraph. -
parameterDescriptionRegexReturns the regex used for matching method parameter description with capture 1 containing parameter name and capture 2 description. -
returnDescriptionRegexReturns the regex used for matching method return description with capture 1 containing description. -
exceptionDescriptionRegexReturns the regex used for matching method exception description with capture 1 containing exception name and capture 2 description. -
crossReferenceRegexReturns the regex used for matching cross reference directive with capture 1 containing link.
Cross references definitions
-
remoteMemberCrossReferenceRegexReturns the regex used for matching (possible) remote member cross references with capture 1 containing object name and capture 2 member name. -
localMemberCrossReferenceRegexReturns the regex used for matching (possible) local member cross reference with capture 1 containing member name. -
categoryCrossReferenceRegexReturns the regex used for matching (possible) category cross reference with capture 1 containing category name. -
objectCrossReferenceRegexReturns the regex used for matching (possible) class or protocol cross reference with capture 1 containing object name. -
urlCrossReferenceRegexReturns the regex used for matching URL cross reference with caption 1 contining the URL itself.
Common definitions
-
newLineRegexReturns the regex containing all possible symbols for matching new lines.
Class Methods
provider
Returns a new autoreleased GBCommentComponentsProvider instance.
+ (id)providerDeclared In
GBCommentComponentsProvider.hProperties
argumentsMatchingRegex
Returns the regex used for matching different method parameter descriptions within the paragraph.
@property (readonly) NSString *argumentsMatchingRegexDeclared In
GBCommentComponentsProvider.hbugSectionRegex
Returns the regex used for matching bug section with capture 1 containing description.
@property (readonly) NSString *bugSectionRegexDeclared In
GBCommentComponentsProvider.hcategoryCrossReferenceRegex
Returns the regex used for matching (possible) category cross reference with capture 1 containing category name.
@property (readonly) NSString *categoryCrossReferenceRegexDeclared In
GBCommentComponentsProvider.hcrossReferenceRegex
Returns the regex used for matching cross reference directive with capture 1 containing link.
@property (readonly) NSString *crossReferenceRegexDeclared In
GBCommentComponentsProvider.hexampleSectionRegex
Returns the regex used for matching example section with capture 1 containing whitespace prefix and capture 2 example text.
@property (readonly) NSString *exampleSectionRegexDeclared In
GBCommentComponentsProvider.hexceptionDescriptionRegex
Returns the regex used for matching method exception description with capture 1 containing exception name and capture 2 description.
@property (readonly) NSString *exceptionDescriptionRegexDeclared In
GBCommentComponentsProvider.hlocalMemberCrossReferenceRegex
Returns the regex used for matching (possible) local member cross reference with capture 1 containing member name.
@property (readonly) NSString *localMemberCrossReferenceRegexDeclared In
GBCommentComponentsProvider.hmethodGroupRegex
Returns the regex used for matching method groups with capture 1 containing section name.
@property (readonly) NSString *methodGroupRegexDeclared In
GBCommentComponentsProvider.hnewLineRegex
Returns the regex containing all possible symbols for matching new lines.
@property (readonly) NSString *newLineRegexDeclared In
GBCommentComponentsProvider.hnextArgumentRegex
Returns the regex used for finding next method parameter description within the paragraph.
@property (readonly) NSString *nextArgumentRegexDeclared In
GBCommentComponentsProvider.hobjectCrossReferenceRegex
Returns the regex used for matching (possible) class or protocol cross reference with capture 1 containing object name.
@property (readonly) NSString *objectCrossReferenceRegexDeclared In
GBCommentComponentsProvider.horderedListRegex
Returns the regex used for matching ordered lists with capture 1 containing lists indent and capture 2 string value.
@property (readonly) NSString *orderedListRegexDeclared In
GBCommentComponentsProvider.hparameterDescriptionRegex
Returns the regex used for matching method parameter description with capture 1 containing parameter name and capture 2 description.
@property (readonly) NSString *parameterDescriptionRegexDeclared In
GBCommentComponentsProvider.hremoteMemberCrossReferenceRegex
Returns the regex used for matching (possible) remote member cross references with capture 1 containing object name and capture 2 member name.
@property (readonly) NSString *remoteMemberCrossReferenceRegexDeclared In
GBCommentComponentsProvider.hreturnDescriptionRegex
Returns the regex used for matching method return description with capture 1 containing description.
@property (readonly) NSString *returnDescriptionRegexDeclared In
GBCommentComponentsProvider.hunorderedListRegex
Returns the regex used for matching unordered lists with capture 1 containing list indent and capture 2 string value.
@property (readonly) NSString *unorderedListRegexDeclared In
GBCommentComponentsProvider.h