source,
resource, or class files generated
during ahead-of-time processing. Source and resource files are written using
UTF-8 encoding.
InMemoryGeneratedFiles, FileSystemGeneratedFiles
| Modifier and Type | Class and Description |
|---|---|
| public static enum | GeneratedFiles.
The various kinds of generated files that are supported. |
| Modifier and Type | Method and Description |
|---|---|
| public default void | addClassFile(String
the relative path of the file path, InputStreamSource an content)InputStreamSource that will provide an input
stream containing the file contentsAdd a generated |
| public default void | addFile(GeneratedFiles.
the kind of file being written kind,the relative path of the file path, CharSequence the contents of the file content)Add a generated file of the specified |
| public default void | addFile(GeneratedFiles.
the kind of file being written kind,the relative path of the file path, ThrowingConsumer<Appendable> a content)ThrowingConsumer that accepts an
Appendable which will receive the file contentsAdd a generated file of the specified |
| public void | addFile(GeneratedFiles.
the kind of file being written kind,the relative path of the file path, InputStreamSource an content)InputStreamSource that will provide an input
stream containing the file contentsAdd a generated file of the specified |
| public default void | addResourceFile(String
the relative path of the file path, CharSequence the contents of the file content)Add a generated |
| public default void | addResourceFile(String
the relative path of the file path, ThrowingConsumer<Appendable> a content)ThrowingConsumer that accepts an
Appendable which will receive the file contentsAdd a generated |
| public default void | addResourceFile(String
the relative path of the file path, InputStreamSource an content)InputStreamSource that will provide an input
stream containing the file contentsAdd a generated |
| public default void | addSourceFile(JavaFile
the java file to add javaFile)Add a generated |
| public default void | addSourceFile(String
the class name that should be used to determine the path
of the file className, CharSequence the contents of the file content)Add a generated |
| public default void | addSourceFile(String
the class name that should be used to determine the path
of the file className, ThrowingConsumer<Appendable> a content)ThrowingConsumer that accepts an
Appendable which will receive the file contentsAdd a generated |
| public default void | addSourceFile(String
the class name that should be used to determine the path
of the file className, InputStreamSource an content)InputStreamSource that will provide an input
stream containing the file contentsAdd a generated |
| private static String | |
| private static boolean | |
| private static void |
| addClassFile | back to summary |
|---|---|
| public default void addClassFile(String path, InputStreamSource content) Add a generated
| |
| addFile | back to summary |
|---|---|
| public default void addFile(GeneratedFiles. Add a generated file of the specified
| |
| addFile | back to summary |
|---|---|
| public default void addFile(GeneratedFiles. Add a generated file of the specified
| |
| addFile | back to summary |
|---|---|
| public void addFile(GeneratedFiles. Add a generated file of the specified
| |
| addResourceFile | back to summary |
|---|---|
| public default void addResourceFile(String path, CharSequence content) Add a generated
| |
| addResourceFile | back to summary |
|---|---|
| public default void addResourceFile(String path, ThrowingConsumer<Appendable> content) Add a generated
| |
| addResourceFile | back to summary |
|---|---|
| public default void addResourceFile(String path, InputStreamSource content) Add a generated
| |
| addSourceFile | back to summary |
|---|---|
| public default void addSourceFile(JavaFile javaFile) Add a generated
| |
| addSourceFile | back to summary |
|---|---|
| public default void addSourceFile(String className, CharSequence content) Add a generated
| |
| addSourceFile | back to summary |
|---|---|
| public default void addSourceFile(String className, ThrowingConsumer<Appendable> content) Add a generated
| |
| addSourceFile | back to summary |
|---|---|
| public default void addSourceFile(String className, InputStreamSource content) Add a generated
| |
| getClassNamePath | back to summary |
|---|---|
| private static String getClassNamePath(String className) | |
| isJavaIdentifier | back to summary |
|---|---|
| private static boolean isJavaIdentifier(String className) | |
| validatePackage | back to summary |
|---|---|
| private static void validatePackage(String packageName, String className) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final GeneratedFiles. | CLASS
A class file containing bytecode. |
| public static final GeneratedFiles. | RESOURCE
A resource file that should be directly added to the final application. |
| public static final GeneratedFiles. | SOURCE
A source file containing Java code that should be compiled. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static GeneratedFiles. | |
| public static GeneratedFiles. |
| CLASS | back to summary |
|---|---|
| public static final GeneratedFiles. A class file containing bytecode. For example, the result of a proxy generated using CGLIB. | |
| RESOURCE | back to summary |
|---|---|
| public static final GeneratedFiles. A resource file that should be directly added to the final application.
For example, a | |
| SOURCE | back to summary |
|---|---|
| public static final GeneratedFiles. A source file containing Java code that should be compiled. | |
| Kind | back to summary |
|---|---|
| private Kind() | |
| valueOf | back to summary |
|---|---|
| public static GeneratedFiles. | |
| values | back to summary |
|---|---|
| public static GeneratedFiles. | |