Replace Method With Method Object

You have a long method that uses local variables in such a way that you cannot apply extract method.

Turn the method into its own object so that all the local variables become fields that object.

You can then decompose the method into other methods on the same object.
posted @ 2007-04-28 14:51  南守拥  阅读(167)  评论(0编辑  收藏  举报