A case of visitor versus interpreter pattern

16Citations
Citations of this article
25Readers
Mendeley users who have this article in their library.
Get full text

Abstract

We compare the Visitor pattern with the Interpreter pattern, investigating a single case in point for the Java language. We have produced and compared two versions of an interpreter for a programming language. The first version makes use of the Visitor pattern. The second version was obtained by using an automated refactoring to transform uses of the Visitor pattern to uses of the Interpreter pattern. We compare these two nearly equivalent versions on their maintenance characteristics and execution efficiency. Using a tailored experimental research method we can highlight differences and the causes thereof. The contributions of this paper are that it isolates the choice between Visitor and Interpreter in a realistic software project and makes the difference experimentally observable. © 2011 Springer-Verlag Berlin Heidelberg.

Cite

CITATION STYLE

APA

Hills, M., Klint, P., Van Der Storm, T., & Vinju, J. (2011). A case of visitor versus interpreter pattern. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 6705 LNCS, pp. 228–243). https://doi.org/10.1007/978-3-642-21952-8_17

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free