3 ms·Indeed! It's the visitor pattern and since we're talking about a tree that would probably be useful here.by rezonant 5y agoIndeed! It's the visitor pattern and since we're talking about a tree that would probably be useful here.