GBCommentArgument Class Reference
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
-
+ argumentWithName:description:
Returns a new autoreleased argument with the given name and description. -
+ argument
Returns a new autoreleased argument with no name and description.
Values
-
argumentName
The name of the argument. property -
argumentDescription
Description of the argument asGBCommentParagraph
. property
Properties
argumentDescription
Description of the argument as GBCommentParagraph
.
@property (retain) GBCommentParagraph *argumentDescription
See Also
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 isnil
.
Declared In
GBCommentArgument.h