protected function write(cfhCompile_Class_Interface $class)
 {
     if (isset($this->classesWritten[$class->getName()])) {
         return;
     }
     $this->classesWritten[$class->getName()] = TRUE;
     $source = $this->codeReader->getSourceCode($class);
     if ($source !== NULL) {
         $this->notify(cfhCompile_Compiler_Event::EVENT_WRITE, $class);
         $this->codeWriter->write($class, $source, $this->classRegistry);
     } else {
         $this->notify(cfhCompile_Compiler_Event::EVENT_SKIP, $class);
     }
 }
 /**
  * Writes source code.
  *
  * @param String $sourceCode
  */
 public function writeSource($sourceCode)
 {
     $sourceCode = $this->plugin->preWriteSource($this, $sourceCode);
     $this->write->writeSource($sourceCode);
     $this->plugin->postWriteSource($this, $sourceCode);
 }