Package io.micronaut.sourcegen.javapoet
Class JavaFile
java.lang.Object
io.micronaut.sourcegen.javapoet.JavaFile
A Java file containing a single top level class.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaFile.BuilderbooleaninthashCode()toString()voidWrites this todirectoryas UTF-8 using the standard directory structure.voidwriteTo(Appendable out) voidWrites this todirectoryas UTF-8 using the standard directory structure.voidWrites this todirectorywith the providedcharsetusing the standard directory structure.voidWrites this tofiler.writeToFile(File directory) Writes this todirectoryas UTF-8 using the standard directory structure.writeToPath(Path directory) Writes this todirectoryas UTF-8 using the standard directory structure.writeToPath(Path directory, Charset charset) Writes this todirectorywith the providedcharsetusing the standard directory structure.
-
Field Details
-
fileComment
-
packageName
-
typeSpec
-
skipJavaLangImports
public final boolean skipJavaLangImports
-
-
Method Details
-
writeTo
- Throws:
IOException
-
writeTo
Writes this todirectoryas UTF-8 using the standard directory structure.- Throws:
IOException
-
writeTo
Writes this todirectorywith the providedcharsetusing the standard directory structure.- Throws:
IOException
-
writeToPath
Writes this todirectoryas UTF-8 using the standard directory structure. Returns thePathinstance to which source is actually written.- Throws:
IOException
-
writeToPath
Writes this todirectorywith the providedcharsetusing the standard directory structure. Returns thePathinstance to which source is actually written.- Throws:
IOException
-
writeTo
Writes this todirectoryas UTF-8 using the standard directory structure.- Throws:
IOException
-
writeToFile
Writes this todirectoryas UTF-8 using the standard directory structure. Returns theFileinstance to which source is actually written.- Throws:
IOException
-
writeTo
Writes this tofiler.- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
toJavaFileObject
-
builder
-
toBuilder
-