public class SourceBuilder
extends java.lang.Object
JavaFileObject.| Constructor and Description |
|---|
SourceBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SourceBuilder |
addLine(java.lang.String fmt,
java.lang.Object... args)
Appends a formatted line of code to the source.
|
javax.tools.JavaFileObject |
build()
Returns a
JavaFileObject for the source added to the builder. |
public SourceBuilder addLine(java.lang.String fmt, java.lang.Object... args)
String.format(java.lang.String, java.lang.Object...),
except that Class instances use their entity's name unadorned, rather than the usual
toString implementation.public javax.tools.JavaFileObject build()
JavaFileObject for the source added to the builder.