Author Login Chief Editor Login Reviewer Login Editor Login Remote Office

›› 2005, Vol. 31 ›› Issue (08): 89-91.

• Papers • Previous Articles     Next Articles

Research on Visitor Design Pattern

LIU Zhengchi, YANG Guanzhong   

  1. (Software College, Hunan University, Changsha 410082)
  • Published:2005-04-25

Visitor设计模式研究

刘征驰,杨贯中   

  1. 湖南大学软件学院,湖南大学软件学院 长沙 410082

Abstract: In the light of the object-oriented design principles, Visitor design pattern and its improved pattern are presented and analyzed. Then a new patter——reflect visitor pattern is put forward. The UML class diagrams and Java code fragments for each pattern are given.

摘要: 在面向对象设计理论指导下,通过分析Visitor设计模式及其已有改进模式的组成及其优缺点,提出了基于反射机制的改进方案Reflect Visitor模式。对于文中每一种模式,都给出了UML类图和Java实现的代码片断。

关键词: 设计模式, 面向对象, 软件复用

CLC Number: