GBMethodSectionData Class Reference

Inherits from NSObject
Declared in GBMethodSectionData.h<br />GBMethodSectionData.m

Overview

Definition of a method section.

Method section contains a list of related methods and is used for grouping different groups of methods in the final output. This is only a thin wrapper over an NSArray so it doesn't provide must of validation code found in other classes. It simply defines accessors and mutators for changing the values.

Tasks

Section data handling

Other Methods

Instance Methods

debugDescription

description

registerMethod:

Registers the given method to the end of the section's methods list.

- (void)registerMethod:(GBMethodData *)method

Parameters

method
The method to register.

Discussion

Registers the given method to the end of the section's methods list.

As GBMethodSectionData is a thin wrapper over an NSArray , no validation is done, the given object is simply added to the end of the methods array. Client should make sure there is no duplication and implement other constraints. If the array is nil , a new instance is created before adding.

Exceptions

NSException
Thrown if the given method is nil .

See Also

Declared In

GBMethodSectionData.h
GBMethodSectionData.m

Properties

methods

The array of section methods in the order of registration.

@property (readonly) NSArray *methods

Discussion

The array of section methods in the order of registration.

Each entry is an instance of GBMethodData and should be registered through registerMethod: method.

See Also

Declared In

GBMethodSectionData.h

sectionName

The name of the section.

@property (copy) NSString *sectionName

Discussion

The name of the section.

See Also

Declared In

GBMethodSectionData.h