Uses of Enum Class
org.springframework.aot.generate.GeneratedFiles.Kind
Package
Description
Support classes for components that contribute generated code equivalent to a
runtime behavior.
-
Uses of GeneratedFiles.Kind in org.springframework.aot.generate
Modifier and TypeMethodDescriptionstatic GeneratedFiles.Kind
Returns the enum constant of this class with the specified name.static GeneratedFiles.Kind[]
GeneratedFiles.Kind.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptiondefault void
GeneratedFiles.addFile
(GeneratedFiles.Kind kind, String path, CharSequence content) Add a generated file of the specifiedGeneratedFiles.Kind
with content from the givenCharSequence
.default void
GeneratedFiles.addFile
(GeneratedFiles.Kind kind, String path, InputStreamSource content) Add a generated file of the specifiedGeneratedFiles.Kind
with content from the givenInputStreamSource
.default void
GeneratedFiles.addFile
(GeneratedFiles.Kind kind, String path, ThrowingConsumer<Appendable> content) Add a generated file of the specifiedGeneratedFiles.Kind
with content written to anAppendable
passed to the givenThrowingConsumer
.InMemoryGeneratedFiles.getGeneratedFile
(GeneratedFiles.Kind kind, String path) Return theInputStreamSource
of specified file.InMemoryGeneratedFiles.getGeneratedFileContent
(GeneratedFiles.Kind kind, String path) Return the content of the specified file.InMemoryGeneratedFiles.getGeneratedFiles
(GeneratedFiles.Kind kind) Return aMap
of the generated files of a specificGeneratedFiles.Kind
.void
FileSystemGeneratedFiles.handleFile
(GeneratedFiles.Kind kind, String path, ThrowingConsumer<GeneratedFiles.FileHandler> handler) void
GeneratedFiles.handleFile
(GeneratedFiles.Kind kind, String path, ThrowingConsumer<GeneratedFiles.FileHandler> handler) Handle a generated file of the specifiedGeneratedFiles.Kind
with the given handler.void
InMemoryGeneratedFiles.handleFile
(GeneratedFiles.Kind kind, String path, ThrowingConsumer<GeneratedFiles.FileHandler> handler) ModifierConstructorDescriptionCreate a newFileSystemGeneratedFiles
instance with all files stored under the root provided by the givenFunction
.