Julian Hyde created CALCITE-1530:
------------------------------------

             Summary: Create a Shuttle for visiting linq4j expressions without 
mutating them
                 Key: CALCITE-1530
                 URL: https://issues.apache.org/jira/browse/CALCITE-1530
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde
            Assignee: Julian Hyde


Create a shuttle for visiting linq4j expressions without mutating them. Rename 
the current {{Visitor}} class to {{Shuttle}}, create a new {{Visitor<R>}} 
interface, and a default implementation {{VisitorImpl<R>}}, and add a method 
{{<R> R Node.accept(Visitor<R> visitor)}}.

Note that {{accept}}'s return type is {{R}}: not necessarily a node, in fact 
often {{Void}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to