Re: Method overloading & proxy method

2009-05-09 Thread ronen
Well the solution in my case was to create a map from visited types to visited members (http://tinyurl.com/poq5e2) the visitation logic uses this map in order to invoke the next visit (http://tinyurl.com/ pkugra). This "pattern" enables visitors to be implemented in Clojure for pure Java based fr

Re: Method overloading & proxy method

2009-05-05 Thread Stuart Sierra
On May 4, 11:52 pm, Alex Osborne wrote: > Thankfully, Mark managed to figure out a way of doing it with with gen- > class by using an undocumented (?) feature where you can put types > into the method names so as to pick the exact one you want to > override: > > (ns org.example.FancyInputStream >

Re: Method overloading & proxy method

2009-05-05 Thread Alex Osborne
On Mar 23, 9:55 am, ronen wrote: > [... what] I actually need is a way of overriding specific methods (like the > visit > (MethodDeclaration n, A arg) and not all of them. I keep running into this problem again and again myself, so I thought I might post some notes. The short of it: doing anyt

Re: Method overloading & proxy method

2009-03-22 Thread ronen
Well it seems to be more complicated than that, defining a visit method overrides the call to the visit(CompilationUnit n, A arg) method which contains the basic visitation logic, what that I actually need is a way of overriding specific methods (like the visit (MethodDeclaration n, A arg) and no

Re: Method overloading & proxy method

2009-03-22 Thread Stuart Sierra
On Mar 21, 6:13 pm, ronen wrote: > Hello there, > Iv been trying to implement a proxy on a class > (http://code.google.com/p/javaparser/source/browse/trunk/JavaParser/sr...) > that has multiple overloaded methods (same arity different types), > trying > > (defn create-visitor [] >   (proxy [Void

Method overloading & proxy method

2009-03-21 Thread ronen
Hello there, Iv been trying to implement a proxy on a class ( http://code.google.com/p/javaparser/source/browse/trunk/JavaParser/src/japa/parser/ast/visitor/VoidVisitorAdapter.java?spec=svn77&r=77) that has multiple overloaded methods (same arity different types), trying (defn create-visitor []