| Inherits from | NSObject |
| Declared in | GBParser.h<br />GBParser.m |
Handles loading class data from source files.
This is the first phase of appledoc generation process. It walks the given directory hierarchy and loads source files data into memory structure prepared for next phases.
+ parserWithSettingsProvider:
Returns autoreleased parser that work with the given GBApplicationSettingsProvider implementor.
- initWithSettingsProvider:
Initializes the parser to work with the given GBApplicationSettingsProvider implementor.
- parseObjectsFromPaths:toStore:
Scans the given array of paths and parses all code files into in-memory objects.
Returns autoreleased parser that work with the given GBApplicationSettingsProvider implementor.
+ (id)parserWithSettingsProvider:(id)settingsProvider Returns initialized instance or nil if initialization fails.
Returns autoreleased parser that work with the given GBApplicationSettingsProvider implementor.
nil . GBParser.hGBParser.m Initializes the parser to work with the given GBApplicationSettingsProvider implementor.
- (id)initWithSettingsProvider:(id)settingsProvider Returns initialized instance or nil if initialization fails.
Initializes the parser to work with the given GBApplicationSettingsProvider implementor.
This is the designated initializer.
nil . GBParser.hGBParser.mScans the given array of paths and parses all code files into in-memory objects.
- (void)parseObjectsFromPaths:(NSArray *)paths toStore:(id < GBStoreProviding >)storeScans the given array of paths and parses all code files into in-memory objects.
This is the main parsing method. It is intended to be invoked from the top level application code. It accepts an array of paths - either directories or file names - and parses them for code. If it detects an object within any file, it's data is parsed into in-memory representation suited for further processing. Parsed data is registered to the given GBStore .
If any kind of inconsistency is detected in source code, a warning is logged and parsing continues. This allows us to extract as much information as possible, while ignoring problems.
Note: The method expects the given array contains NSString s representing existing directory or file names. The method itself doesn't validate this and may result in unpredictable behavior in case an invalid path is passed in. The paths don't have to be standardized, expanded or similar though.
GBParser.hGBParser.m