Inherits from NSObject
Declared in GBCommentArgument.h
GBCommentArgument.m

Overview

Describes an argument of a GBComment.

An argument is a named argument such as parameter or exception. It contains the argument (parameter or exception) name as argumentName and corresponding description in the form of GBCommentParagraph as argumentDescription.

Tasks

Initialization & disposal

Values

Properties

argumentDescription

Description of the argument as GBCommentParagraph.

@property (retain) GBCommentParagraph *argumentDescription

Declared In

GBCommentArgument.h

argumentName

The name of the argument.

@property (copy) NSString *argumentName

Declared In

GBCommentArgument.h

Class Methods

argument

Returns a new autoreleased argument with no name and description.

+ (id)argument

Declared In

GBCommentArgument.h

argumentWithName:description:

Returns a new autoreleased argument with the given name and description.

+ (id)argumentWithName:(NSString *)name description:(GBCommentParagraph *)description

Parameters

name
The name of the argument.
description
Description of the argument.

Return Value

Returns initialized instance.

Discussion

Sending this method is equivalent to:

GBCommentArgument *argument = [[[GBCommentArgument alloc] init] autorelease];
argument.argumentName = name;
argument.argumentDescription = description;

Exceptions

NSException
Thrown if name is nil or empty string or description is nil.

Declared In

GBCommentArgument.h