| Modifier and Type | Method and Description |
|---|---|
static void |
writeCompilationUnit(Filer filer,
QualifiedName classToWrite,
Element originatingElement,
String source)
Writes
source to the correct file for classToWrite. |
public static void writeCompilationUnit(Filer filer, QualifiedName classToWrite, Element originatingElement, String source) throws IOException
source to the correct file for classToWrite.
This is complicated mainly by an EJC bug that returns the wrong object from
Writer.append(CharSequence), plus how to handle any exception thrown from
Writer.close().
IOExceptionCopyright © 2016 Google, Inc.. All rights reserved.