>
Fa   |   Ar   |   En
   The Language of the Visitor Design Pattern  
   
نویسنده Schordan Markus
منبع journal of universal computer science - 2006 - دوره : 12 - شماره : 7 - صفحه:849 -867
چکیده    Design patterns have been developed to cope with the vast space of possible different designs within object-oriented systems. one of those classic patterns is the visitor pattern, used for representing an operation to be performed on the elements of an object structure. in general, the order in which the objects are visited is crucial. we present a mapping from the visitor pattern to a context free grammar that defines the set of all such visit sequences, a given visitor can perform. the language defined by this grammar is the language of the visitor design pattern and the mapping encodes knowledge about the class hierarchy and the implementation of the accept methods of a visitor design pattern. it is general enough to model complications that occur when traversing arbitrary object structures, and also properly represents cases such as lack of a common base class, multiple inheritance, and inheritance from concrete classes. due to its particular design, the grammar can also be used as precise documentation for a visitor design pattern
کلیدواژه context free grammar ,visitor pattern ,visitor language ,method invocationsequence ,essential aspect
آدرس Vienna University of Technology, Institute of Computer Languages, Austria
پست الکترونیکی markus@complang.tuwien.ac.at
 
     
   
Authors
  
 
 

Copyright 2023
Islamic World Science Citation Center
All Rights Reserved