Top "Visitor" questions

The Visitor design pattern is a way of separating an algorithm from an object structure on which it operates.

Visitor pattern's purpose with examples

I'm really confused about the visitor pattern and its uses. I can't really seem to visualize the benefits of using …

java design-patterns visitor
Why use the Visitor Pattern?

Duplicate of: When Should I Use The Visitor Design Pattern Why would someone want to use the visitor pattern? I've …

design-patterns visitor
Visitor Pattern Explanation

So I've read up all the documentation about the Visitor pattern, and I'm still mightily confused. I've taken this example …

c++ visitor
What is the point of accept() method in Visitor pattern?

There is a lot of talk on decoupling the algorithms from the classes. But, one thing stays aside not explained. …

design-patterns visitor
How to write the Visitor Pattern for Abstract Syntax Tree in Python?

My collegue suggested me to write a visitor pattern to navigate the AST. Can anyone tell me more how would …

python parsing compiler-construction abstract-syntax-tree visitor
Using a LINQ ExpressionVisitor to replace primitive parameters with property references in a lambda expression

I'm in the process of writing a data layer for a part of our system which logs information about automated …

c# linq lambda expression visitor
Alternative to the visitor pattern?

I am looking for an alternative to the visitor pattern. Let me just focus on a couple of pertinent aspects …

oop design-patterns visitor
Difference betwen Visitor pattern & Double Dispatch

I am reading about visitor pattern, and it appears the same like Double Dispatch. Is there any difference between the …

design-patterns visitor double-dispatch
ANTLR 4 and AST visitors

I'm trying to use ASTs with ANTLR4, with this files: Builder.java import org.antlr.v4.runtime.ANTLRInputStream; import org.…

java antlr visitor abstract-syntax-tree antlr4
how to use antlr4 visitor

I am a beginner of antlr. I was trying to use visitor in my code and following the instruction on …

java parsing antlr4 visitor