SourceFile source = getSourceFile(filename, input); compiledUnits.add(source); CompilationUnit[] units = {new CompilationUnit(this, source, console)}; return compile(units);
List units = new ArrayList(files.length); for (int i = 0; i < files.length; i++) { try { SourceFile source = getSourceFile(files[i]); units.add(new CompilationUnit(this, source, console)); compiledUnits.add(source); } catch (IOException exception) { error(exception.getMessage()); } } CompilationUnit[] array = new CompilationUnit[units.size()]; return compile((CompilationUnit[])units.toArray(array));
    public CompilationUnit[] compile(String filename, String input, boolean console) {        reporter.resetCounters();        SourceFile source = getSourceFile(filename, input);	compiledUnits.add(source);        CompilationUnit[] units = {new CompilationUnit(this, source, console)};        return compile(units);    }