package org.yarp;

// GENERATED BY <%= File.basename(__FILE__) %>
public abstract class AbstractNodeVisitor<T> {

    protected abstract T defaultVisit(Nodes.Node node);

    <%- nodes.each do |node| -%>
    public T visit<%= node.name -%>(Nodes.<%= node.name -%> node) {
        return defaultVisit(node);
    }

    <%- end -%>
}
