public class SourceWriter extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
SourceWriter |
add(String fmt,
Object... args)
Appends formatted text to the source.
|
SourceWriter |
addLine(String fmt,
Object... args)
Appends a formatted line of code to the source.
|
void |
close() |
public SourceWriter add(String fmt, Object... args)
String.format(java.lang.String, java.lang.Object...),
except that:Package and PackageElement instances use their fully-qualified names
(no "package " prefix).
Class and TypeElement instances use their qualified names where necessary,
or shorter versions if possible.
public SourceWriter addLine(String fmt, Object... args)
String.format(java.lang.String, java.lang.Object...),
except that:Package and PackageElement instances use their fully-qualified names
(no "package " prefix).
Class and TypeElement instances use their qualified names where necessary,
or shorter versions if possible.
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2015 Google, Inc.. All rights reserved.