Design patterns: elements of reusable object-oriented software
Design patterns: elements of reusable object-oriented software
The Essence of the Visitor Pattern
COMPSAC '98 Proceedings of the 22nd International Computer Software and Applications Conference
Pattern matching for object-like structures in the Go programming language
Proceedings of the 6th Workshop on Implementation, Compilation, Optimization of Object-Oriented Languages, Programs and Systems
Hi-index | 0.00 |
This paper presents a refinement of the Visitor design pattern, providing convenient pattern matching and deconstruction over objects in a Java class hierarchy. It develops the idea of extracting and passing the values of an object's subcomponents to the visitor operation so that it is not necessary to explicitly extract them using accessor methods. It further presents the use of the Java Reflection API to implement a flexible and extensible pattern matching framework.