String visitorPackage = VisitorGenerator.qualifiedClassName(getJavaGenerationParameters()); String altClassName = FactoryGenerator.concatTypeAlt(type, alt);
Set moduleToGen = new HashSet(); moduleToGen = adt.getImportsClosureForModule(type.getModuleName()); Iterator moduleIt = moduleToGen.iterator(); while(moduleIt.hasNext()) { String moduleName = (String) moduleIt.next(); String visitorPackage = VisitorGenerator.qualifiedClassName(getJavaGenerationParameters(),moduleName); String altClassName = FactoryGenerator.concatTypeAlt(type, alt);
    private void genAltVisitableInterface(Type type, Alternative alt) {        String visitorPackage =            VisitorGenerator.qualifiedClassName(getJavaGenerationParameters());        String altClassName = FactoryGenerator.concatTypeAlt(type, alt);        println(            "  public void accept("                + visitorPackage                + ".Visitor v) throws jjtraveler.VisitFailure {");        println("    v.visit_" + altClassName + "(this);");        println("  }");        println();    }