visitor-pattern
AST traversal in visitor or in the nodes?
Update accepted Ira Baxter\'s answer since it pointed me into the right direction: I first figured out what I actually needed by starting the implementation of the compiling stage, and it became obvio[详细]
2023-02-13 06:04 分类:问答Counting visits and more in a mysql, any better practice or third party software?
Let\'s assume i have a website like quora where i want to count how many visitor开发者_如何学Gos saw a particular page/question...(\"This question was visited 345 times\")[详细]
2023-02-12 18:00 分类:问答How can I make JAXB-generated classes participate in a Visitor pattern?
Hey folks, hopefully a nice easy one here. I\'m generating classes with JAXB from a schema, and I\'d like to be able to process them with a Visitor pattern.[详细]
2023-02-10 10:38 分类:问答Class derivation on the fly - Visitor Pattern
I would like to create visitor pattern in such a way public interface Visitable<T>{ public void accept(T visitor);[详细]
2023-02-08 01:44 分类:问答Visitor Pattern Item Tracker
In an implementation of the visitor pattern with interfaces as follow (feel free to tell me if you think the interfaces themselves are wrong), who should be responsible for tracking a list of all the[详细]
2023-02-05 10:55 分类:问答Visitor pattern and compiler code generation, how to get children attributes?
I\'d like to modify my compiler\'s code generator to use visitor pattern since the current approach must use multiple conditional statement to check the real type of a child before generating the corr[详细]
2023-02-04 21:51 分类:问答Struts 2: Validating children collections using ValidationInterceptor + Visitor
I have a model object that has a collection of children in a header-detail relationship, with the header handled in one action class (and form) and the details edited 开发者_开发知识库in a separate ac[详细]
2023-02-04 02:35 分类:问答Invoking a method overloaded where all arguments implement the same interface
My starting point is the following: - I have a method, transform, which I overloaded to behave differently depending on the type of arguments that are passed in (seetransform(A a1, A a2) and transform[详细]
2023-02-03 19:00 分类:问答Building a control-flow graph from an AST with a visitor pattern using Java
I\'m trying to figure out how to implement my LEParserCfgVisitor class as to build a control-flow graph from an Abstract-Syntax-Tree already generated with JavaCC. I know there are tools that already[详细]
2023-01-31 03:29 分类:问答Can anyone direct me to an excellent article that describe the visitor design pattern [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-01-28 09:55 分类:问答