标签:监视 ref 引用 重构 封装 ace strategy psu const
本篇目录:
1 Self Encapsulate Field(自封装字段)
2 Replace Data Value with Object(以对象取代数据值)
3 Change Value to Reference(将值对象改为引用对象)
4 Change Reference to Value(将引用对象改为值对象)
5 Replace Array with Object (以对象取代数组)
6 Duplicate Observerd Data(复制“被监视数据”)
7 Change Unidirectional Assocation to Bidirection(将单项关联改为双向关联)
8 Change Bidirection Association to Unidirectional(将双向关联改为单项关联)
9 Replace Magic Number with Symbolic Constant(以字面常量取代魔法数)
10 Encapsulate Field(封装字段)
11 Encapsulate Collection(封装集合)
12 Replace Record with Data Class(以数据类取代记录)
13 Replace Type Code with Class(以类取代类型码)
14 Replace Type Code With SubClass(以子类取代类型码)
15 Replace Type Code With State/Strategy(以state/Strategy取代类型码)
16 Replace Subclass with Fields(以字段取代子类)
标签:监视 ref 引用 重构 封装 ace strategy psu const
原文地址:http://www.cnblogs.com/cs-forget/p/7708614.html