code: public void addClassCompileTask(final String className,
                                      final BaseDescr descr,
                                      final String text,
                                      final MemoryResourceReader src,
                                      final ErrorHandler handler) {
          final String fileName = className.replace('.',
                                                    '/') + ".java";
  
          if (src != null) {
              src.add(fileName,
                      text.getBytes(IoUtils.UTF8_CHARSET));
          } else {
              this.src.add(fileName,
                           text.getBytes(IoUtils.UTF8_CHARSET));
          }
  
          this.errorHandlers.put(fileName,
                                 handler);
  
          addClassName(fileName);
      }
docs: This adds a compile "task" for when the compiler of
  semantics (JCI) is called later on with compileAll()\
  which actually does the compiling.
  The ErrorHandler is required to map the errors back to the
  element that caused it.