public class SourceBuilder extends Object
JavaFileObject.| Constructor and Description |
|---|
SourceBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SourceBuilder |
addLine(String fmt,
Object... args)
Appends a formatted line of code to the source.
|
JavaFileObject |
build()
Returns a
JavaFileObject for the source added to the builder. |
public SourceBuilder addLine(String fmt, 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 JavaFileObject build()
JavaFileObject for the source added to the builder.Copyright © 2015 inferred.org. All rights reserved.