Noun
visitor pattern (plural visitor patterns)
(software, design) A behavioural design pattern that separates an algorithm from an object structure on which it operates.
The Visitor pattern encodes a logical operation on the whole hierarchy into a single class containing one method per type. Source: Internet
Instead, one could apply the Visitor pattern. Source: Internet