code: public void compile(File file) throws CompilationFailedException {
          CompilationUnit unit = new CompilationUnit(configuration);
          unit.addSource(file);
          unit.compile();
      }
docs: Compiles a single File.