| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| public final CodeBlock | |
| private final String | |
| private static final Appendable | |
| public final String | |
| public final boolean | |
| private final Set | |
| public final TypeSpec |
| Modifier and Type | Method and Description |
|---|---|
| public static JavaFile. | |
| private void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| private void | |
| public int | |
| public JavaFile. | |
| public JavaFileObject | |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public File | writeToFile(File directory)
Writes this to |
| public Path | writeToPath(Path directory)
Writes this to |
| public Path | writeToPath(Path directory, Charset charset)
Writes this to |
| alwaysQualify | back to summary |
|---|---|
| private final Set<String> alwaysQualify | |
| fileComment | back to summary |
|---|---|
| public final CodeBlock fileComment | |
| indent | back to summary |
|---|---|
| private final String indent | |
| NULL_APPENDABLE | back to summary |
|---|---|
| private static final Appendable NULL_APPENDABLE | |
| packageName | back to summary |
|---|---|
| public final String packageName | |
| skipJavaLangImports | back to summary |
|---|---|
| public final boolean skipJavaLangImports | |
| staticImports | back to summary |
|---|---|
| private final Set<String> staticImports | |
| typeSpec | back to summary |
|---|---|
| public final TypeSpec typeSpec | |
| JavaFile | back to summary |
|---|---|
| private JavaFile(JavaFile. | |
| builder | back to summary |
|---|---|
| public static JavaFile. | |
| emit | back to summary |
|---|---|
| private void emit(CodeWriter codeWriter) throws IOException | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fillAlwaysQualifiedNames | back to summary |
|---|---|
| private void fillAlwaysQualifiedNames(TypeSpec spec, Set<String> alwaysQualifiedNames) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toBuilder | back to summary |
|---|---|
| public JavaFile. | |
| toJavaFileObject | back to summary |
|---|---|
| public JavaFileObject toJavaFileObject() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| writeTo | back to summary |
|---|---|
| public void writeTo(Appendable out) throws IOException | |
| writeTo | back to summary |
|---|---|
| public void writeTo(Path directory) throws IOException Writes this to | |
| writeTo | back to summary |
|---|---|
| public void writeTo(Path directory, Charset charset) throws IOException Writes this to | |
| writeTo | back to summary |
|---|---|
| public void writeTo(File directory) throws IOException Writes this to | |
| writeTo | back to summary |
|---|---|
| public void writeTo(Filer filer) throws IOException Writes this to | |
| writeToFile | back to summary |
|---|---|
| public File writeToFile(File directory) throws IOException Writes this to | |
| writeToPath | back to summary |
|---|---|
| public Path writeToPath(Path directory) throws IOException Writes this to | |
| writeToPath | back to summary |
|---|---|
| public Path writeToPath(Path directory, Charset charset) throws IOException Writes this to | |
| Modifier and Type | Field and Description |
|---|---|
| private final CodeBlock. | |
| private String | |
| private final String | |
| private boolean | |
| public final Set | |
| private final TypeSpec |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public JavaFile. | |
| public JavaFile. | |
| public JavaFile. | |
| public JavaFile. | |
| public JavaFile | |
| public JavaFile. | |
| public JavaFile. | skipJavaLangImports(boolean skipJavaLangImports)
Call this to omit imports for classes in |
| fileComment | back to summary |
|---|---|
| private final CodeBlock. | |
| indent | back to summary |
|---|---|
| private String indent | |
| packageName | back to summary |
|---|---|
| private final String packageName | |
| skipJavaLangImports | back to summary |
|---|---|
| private boolean skipJavaLangImports | |
| staticImports | back to summary |
|---|---|
| public final Set<String> staticImports | |
| typeSpec | back to summary |
|---|---|
| private final TypeSpec typeSpec | |
| Builder | back to summary |
|---|---|
| private Builder(String packageName, TypeSpec typeSpec) | |
| addFileComment | back to summary |
|---|---|
| public JavaFile. | |
| addStaticImport | back to summary |
|---|---|
| public JavaFile. | |
| addStaticImport | back to summary |
|---|---|
| public JavaFile. | |
| addStaticImport | back to summary |
|---|---|
| public JavaFile. | |
| build | back to summary |
|---|---|
| public JavaFile build() | |
| indent | back to summary |
|---|---|
| public JavaFile. | |
| skipJavaLangImports | back to summary |
|---|---|
| public JavaFile. Call this to omit imports for classes in By default, JavaPoet explicitly imports types in | |