YYModel
文章图片
YYModel_sequence
文章图片
YYModel YYClassInfo
<<< all base on runtime method
YYClassIvarInfo - encap Ivar
-initWithIvar
YYClassMethodInfo - encap Method
-initWithMethod
YYClassPropertyInfo - encap objc_property_t(Type encoding)
-initWithProperty
YYClassInfo - encap Ivar、Method、property by class
+classInfoWithClass
NSObject+YYModel
All convenient inline method for Foundation class
c number
number value
date
NSDateFormatter
multi key-value
Both for custom like AOP
method, ex: +modelCustomPropertyMapper & +modelContainerPropertyGenericClass
_YYModelPropertyMeta - YYClassPropertyInfo
wrapper
-metaWithClassInfo
_YYModelMeta - YYClassInfo
wrapper
+metaWithClass - cache + dispatch_semaphore
\c - inline ModelCreateNumber
FromProperty
\c - inline ModelSetNumber
ToProperty
————————
\c - ModelSetValue
ForProperty
\c - ModelSetWithDictionaryFunction
\c - ModelSetWithPropertyMetaArrayFunction
\c - ModelToJSON
ObjectRecursive
\c - ModelDescriptionAddIndent
\c - ModelDescription
【Model|Model & JSON is back】NSObject (YYModel)
+modelWithJSON
+modelWithDictionary - _YYModelMeta
-modelSetWithJSON
-modelSetWithDictionary - ModelSetContext(_YYModelMeta/self/dic) -> CFArrayApplyFunction
-modelToJSONObject
-modelToJSONData
-modelToJSONString
NSArray (YYModel)
+modelArrayWithClass:(json:/array:)
NSDictionary (YYModel)
+modelDictionaryWithClass:(json:/dictionary:)
YYModel
MJExtension
文章图片
MJExtension_sequence
文章图片
MJExtension MJExtensionConst - const type coding str
MJFoundation - isClassFromFoundation
MJProperty
MJPropertyKey
+ 多级映射 key, like [[MJPropertyKey]], [[[MJPropertyKey], [MJPropertyKey]]]
+ (AssociatedObject cache)
-name
-valueInObject:(NSMutableDictionary cache)
MJPropertyType
+cachedTypeWithCode
NSObject (MJClass) - white/black list cache
+mj_enumerateClasses - callback classBlock exclusive FoundationClass
+mj_enumerateAllClasses - callback classBlock
+mj_setupBlockReturnValue - AssociatedObj cache block return
+mj_setupAllowedPropertyNames
+mj_setupIgnoredPropertyNames
+mj_setupAllowedCodingPropertyNames
+mj_setupIgnoredCodingPropertyNames
+mj_totalObjectsWithSelector - get cache arr by SEL return - performSelector return
+mj_totalAllowedPropertyNames
+mj_totalIgnoredPropertyNames
+mj_totalAllowedCodingPropertyNames
+mj_totalIgnoredCodingPropertyNames
NSObject (MJProperty)
+mj_enumerateProperties - callback block
+properties - cachedProperties(MJProperty)
+propertyKey - AOP method & block return
+propertyObjectClassInArray - AOP method & block return
+mj_setupNewValueFromOldValue - AssociatedObj cache
+mj_getNewValueFromObject - AOP or cacheBlock return
// AssociatedObj cache
+mj_setupReplacedKey
FromPropertyName
+mj_setupReplacedKey
FromPropertyName121
+mj_setupObjectClass
InArray
NSObject+MJKeyValue
MJKeyValue
-all AOP method
NSObject (MJKeyValue)
Dict->model
-mj_setKeyValues - mj_enumerateProperties(custom class&DictArr&pro)
+mj_objectWithKeyValues - instantiate
+mj_objectArrayWithKeyValuesArray - 拆分-mj_objectWithKeyValues
Model->Dict
-mj_keyValuesWithKeys - mj_enumerateProperties(custom class&DictArr&pro)
+mj_keyValuesArrayWithObjectArray - 拆分-mj_keyValuesWithKeys
-mj_JSONObject