Set moduleToGen = new HashSet(); moduleToGen = adt.getImportsClosureForModule(module.getModulename().getName()); Iterator moduleIt = moduleToGen.iterator();
Iterator moduleIt; if (hasGlobalName) { moduleIt = adt.getModuleNameSet().iterator(); } else { Set moduleToGen = adt.getImportsClosureForModule(module.getModulename().getName()); moduleIt = moduleToGen.iterator(); }
    private void genAccept() {    		Set moduleToGen = new HashSet();       	moduleToGen = adt.getImportsClosureForModule(module.getModulename().getName());       	Iterator moduleIt = moduleToGen.iterator();       	while(moduleIt.hasNext()) {       	    String moduleName = (String) moduleIt.next();       	    String visitorPackage = VisitorGenerator.qualifiedClassName(getJavaGenerationParameters(),moduleName);       	    println(            "  abstract public " + getClassName() + " accept("                + visitorPackage                + " v) throws " + traveler + ".VisitFailure;");       	    println();       	}    }