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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JavaFile.Builder
boolean
int
hashCode()
toString()
void
Writes this todirectory
as UTF-8 using the standard directory structure.void
writeTo
(Appendable out) void
Writes this todirectory
as UTF-8 using the standard directory structure.void
Writes this todirectory
with the providedcharset
using the standard directory structure.void
Writes this tofiler
.writeToFile
(File directory) Writes this todirectory
as UTF-8 using the standard directory structure.writeToPath
(Path directory) Writes this todirectory
as UTF-8 using the standard directory structure.writeToPath
(Path directory, Charset charset) Writes this todirectory
with the providedcharset
using the standard directory structure.
-
Field Details
-
fileComment
-
packageName
-
typeSpec
-
skipJavaLangImports
public final boolean skipJavaLangImports
-
-
Method Details
-
writeTo
- Throws:
IOException
-
writeTo
Writes this todirectory
as UTF-8 using the standard directory structure.- Throws:
IOException
-
writeTo
Writes this todirectory
with the providedcharset
using the standard directory structure.- Throws:
IOException
-
writeToPath
Writes this todirectory
as UTF-8 using the standard directory structure. Returns thePath
instance to which source is actually written.- Throws:
IOException
-
writeToPath
Writes this todirectory
with the providedcharset
using the standard directory structure. Returns thePath
instance to which source is actually written.- Throws:
IOException
-
writeTo
Writes this todirectory
as UTF-8 using the standard directory structure.- Throws:
IOException
-
writeToFile
Writes this todirectory
as UTF-8 using the standard directory structure. Returns theFile
instance to which source is actually written.- Throws:
IOException
-
writeTo
Writes this tofiler
.- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
toJavaFileObject
-
builder
-
toBuilder
-