| Inherits from | NSObject |
| Declared in | GBMethodArgument.h<br />GBMethodArgument.m |
Defines a single method argument.
+ methodArgumentWithName:types:var:terminationMacros:
Returns autoreleased method argument with the given parameters.
+ methodArgumentWithName:types:var:
Returns autoreleased method argument with the given parameters.
+ methodArgumentWithName:
Returns autoreleased type-less method argument.
- initWithName:types:var:terminationMacros:
Initializes method argument with the given parameters.
argumentName
The name of the argument.
argumentTypes
Array of argument types.
argumentVar
The name of the argument variable.
terminationMacros
Array of variable arguments termination macros.
isTyped
Specifies whether the argument is typed or not. The argument is typed if it uses type and var.
isVariableArg
Specifies whether the argument is variable arg or not.
Returns autoreleased type-less method argument.
+ (id)methodArgumentWithName:(NSString *)name Returns initialized object or nil if initialization fails.
Returns autoreleased type-less method argument.
Internally this sends allocated instance initWithName:types:var:terminationMacros: message, so check it's documentation for details.
nil or empty string. GBMethodArgument.hGBMethodArgument.mReturns autoreleased method argument with the given parameters.
+ (id)methodArgumentWithName:(NSString *)name types:(NSArray *)types var:(NSString *)var NSString instances or nil if not used. GBMethodArgument instances or nil if not used. Returns initialized object or nil if initialization fails.
Returns autoreleased method argument with the given parameters.
Internally this sends allocated instance initWithName:types:var:terminationMacros: message, so check it's documentation for details.
GBMethodArgument.hGBMethodArgument.mReturns autoreleased method argument with the given parameters.
+ (id)methodArgumentWithName:(NSString *)name types:(NSArray *)types var:(NSString *)var terminationMacros:(NSArray *)macros NSString instances or nil if not used. GBMethodArgument instances or nil if not used. nil if not variable arg. Returns initialized object or nil if initialization fails.
Returns autoreleased method argument with the given parameters.
Internally this sends allocated instance initWithName:types:var:terminationMacros: message, so check it's documentation for details.
GBMethodArgument.hGBMethodArgument.mInitializes method argument with the given parameters.
- (id)initWithName:(NSString *)argument types:(NSArray *)types var:(NSString *)var terminationMacros:(NSArray *)macros NSString instances or nil if not used. GBMethodArgument instances or nil if not used. nil if not variable arg. Returns initialized object or nil if initialization fails.
Initializes method argument with the given parameters.
This is the designated initializer. You can either use it to specify method argument with all parameters, in such case you must supply all parameters, or you can use it to specify method argument without type. In such case you should set types and var to nil . If the argument is variable arg type, you should pass in optional termination macros or empty array if no termination macro is used. To specify standard argument, pass nil for termination macros instead!
Note: If you use the selector for type-less argument, both initializer parameters - types and var must be nil . If only one of these is nil , exception is thrown.
GBMethodArgument.hGBMethodArgument.mThe name of the argument.
@property (readonly) NSString *argumentNameThe name of the argument.
Argument is part of method selector and defines -(result) arg :(type)var part of method.
GBMethodArgument.hArray of argument types.
@property (readonly) NSArray *argumentTypesArray of argument types.
Types array define -(result)arg:( type )var part of method. If argument doesn't use types, this is empty array.
GBMethodArgument.hThe name of the argument variable.
@property (readonly) NSString *argumentVarThe name of the argument variable.
Argument variable defines -(result)arg:(type) var part of method. If argument doesn't use variable, this is nil .
GBMethodArgument.hSpecifies whether the argument is typed or not. The argument is typed if it uses type and var.
@property (readonly) BOOL isTypedSpecifies whether the argument is typed or not. The argument is typed if it uses type and var.
GBMethodArgument.hSpecifies whether the argument is variable arg or not.
@property (assign) BOOL isVariableArgSpecifies whether the argument is variable arg or not.
GBMethodArgument.hArray of variable arguments termination macros.
@property (readonly) NSArray *terminationMacrosArray of variable arguments termination macros.
Termination macros array define -(result)arg:(type)var,... macros part of method. If argument isn't variable or doesn't have termination macros, this is nil .
GBMethodArgument.h