The Language of the Visitor Design Pattern

dc.creatorSchordan,Markus
dc.date2006
dc.date.accessioned2024-02-06T12:54:38Z
dc.date.available2024-02-06T12:54:38Z
dc.descriptionDesign 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.
dc.formattext/html
dc.identifierhttps://doi.org/10.3217/jucs-012-07-0849
dc.identifierhttps://lib.jucs.org/article/28637/
dc.identifier.urihttps://openrepository.mephi.ru/handle/123456789/9088
dc.languageen
dc.publisherJournal of Universal Computer Science
dc.relationinfo:eu-repo/semantics/altIdentifier/eissn/0948-6968
dc.relationinfo:eu-repo/semantics/altIdentifier/pissn/0948-695X
dc.rightsinfo:eu-repo/semantics/openAccess
dc.rightsJ.UCS License
dc.sourceJUCS - Journal of Universal Computer Science 12(7): 849-867
dc.subjectcontext free grammar
dc.subjectvisitor pattern
dc.subjectvisitor language
dc.subjectmethod invocation sequence
dc.subjectessential aspect
dc.titleThe Language of the Visitor Design Pattern
dc.typeResearch Article
Файлы
Коллекции