visitor-pattern
What does the accept() method of ASTNode do and how does it use the ASTVisitor?
What does the accept method of ASTNode do (The javadoc didn\'t help too much...) and when will the visit(Expression node) method be called?[详细]
2023-01-28 08:00 分类:问答Visiting arrays access using ASM
I\'d like to know if it\'s possible to trace access to an array using ASM API. My goal is to determine which index of an array is accessed, and when (this part is easy - usin开发者_JS百科g System.Nan[详细]
2023-01-28 03:14 分类:问答what's the difference between the patterns Strategy, Visitor and Template Method?
I\'m in a class where we just learned about these design patterns. How开发者_Python百科ever I couldn\'t see any difference between them. They sound just like the same, creating concrete classes over t[详细]
2023-01-26 12:49 分类:问答C++: doubts about visitor pattern
I know what Visitor Pattern is and how to use it; this question is not a duplicate of this one. I\'ve got a library where I put most of the reusable code I write, and which I link to most of my pro[详细]
2023-01-25 04:50 分类:问答How to create an iterator wrapper for DAG structure in Java?
I want to have an iterator over a data structure. For now I don\'开发者_运维知识库t know what data structure is, mayebe it is a DAG (directed acyclic graph), but maybe it could be also a linked list.[详细]
2023-01-24 23:09 分类:问答A Variation on Visitor Pattern: Why not move the 2nd dispatch into the visitor's `Visit` method?
Intro Apparently, I\'ve been doing an \"unorthodoxed\" Visitor pattern my whole programmer life. Yes, I dispatch to a concrete composite element visit method from the Visitor\'s Visit method.[详细]
2023-01-24 05:07 分类:问答Generic visitor pattern in java
Is the following java implementation of the visitor pattern using generics, general enough to be useful? (I suppose it is).[详细]
2023-01-20 00:45 分类:问答Design pattern "Container Visitor" without virtual methods?
I am developing the design of an application and I thought I might apply some sort of the Visitor design pattern, but it turned out that it\'s not exactly what I am looking for. Maybe someone can poin[详细]
2023-01-19 13:24 分类:问答How to modify a pre-defined package methods outside of the package?
Let\'s say I have a package called \'animal\' including Animal parent class, Cat extends from Animal, Dog extends from Animal, also. Animal, however, is designed like this:[详细]
2023-01-17 08:22 分类:问答A good reason to use the Visitor design pattern?
Before you tell me that there is already a similar question, yes, i know, I\'ve read it. But the question there focuses on when, I\'m interested in why.[详细]
2023-01-16 04:10 分类:问答