Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (35 sloc) 1.813 kb
//
// GBIvarData.h
// appledoc
//
// Created by Tomaz Kragelj on 26.7.10.
// Copyright (C) 2010, Gentle Bytes. All rights reserved.
//
#import "GBModelBase.h"
/** Describes an ivar */
@interface GBIvarData : GBModelBase
///---------------------------------------------------------------------------------------
/// @name Initialization & disposal
///---------------------------------------------------------------------------------------
/** Returns autoreleased instance of the ivar data from given array of components.
Components array should contain all ivar type tokens and ivar name as the last entry. Types are copied to `ivarTypes` property and name to `ivarName` property.
@param components Components array to setup the data from.
@return Returns initialized instance.
@exception NSException Thrown if the given array of components is `nil` or has only one entry.
*/
+ (id)ivarDataWithComponents:(NSArray *)components;
/** Initializes the ivar data from given array of components.
Components array should contain all ivar type tokens and ivar name as the last entry. Types are copied to `ivarTypes` property and name to `ivarName` property.
@param components Components array to setup the data from.
@return Returns initialized instance.
@exception NSException Thrown if the given array of components is `nil` or has only one entry.
*/
- (id)initWithDataFromComponents:(NSArray *)components;
///---------------------------------------------------------------------------------------
/// @name Ivar data
///---------------------------------------------------------------------------------------
/** The name of the ivar. */
@property (retain) NSString *nameOfIvar;
/** The array of all ivar type tokens in the order of parsing. */
@property (retain) NSArray *ivarTypes;
@end
Jump to Line
Something went wrong with that request. Please try again.