public abstract static class MethodElement.MethodSourceBuilder extends Object implements SourceBuilder, Closeable
Closeable SourceBuilder for writing methods.| Constructor and Description |
|---|
MethodElement.MethodSourceBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract MethodElement.MethodSourceBuilder |
add(String fmt,
Object... args)
Appends formatted text to the source.
|
MethodElement.MethodSourceBuilder |
addLine(String fmt,
Object... args)
Appends a formatted line of code to the source.
|
abstract void |
close() |
public abstract void close()
close in interface Closeableclose in interface AutoCloseablepublic abstract MethodElement.MethodSourceBuilder add(String fmt, Object... args)
SourceBuilderFormatting is done by 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.
add in interface SourceBuilderpublic MethodElement.MethodSourceBuilder addLine(String fmt, Object... args)
SourceBuilderFormatting is done by 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.
addLine in interface SourceBuilderCopyright © 2015 Google, Inc.. All rights reserved.