Enum Class的使用
cn.taketoday.aot.generate.GeneratedFiles.Kind
使用GeneratedFiles.Kind的程序包
程序包
说明
Support classes for components that contribute generated code equivalent to a
runtime behavior.
-
cn.taketoday.aot.generate中GeneratedFiles.Kind的使用
类型参数类型为GeneratedFiles.Kind的cn.taketoday.aot.generate中的字段修饰符和类型字段说明private final Map<GeneratedFiles.Kind,Map<String, InputStreamSource>> InMemoryGeneratedFiles.filesprivate final Function<GeneratedFiles.Kind,Path> FileSystemGeneratedFiles.roots修饰符和类型方法说明static GeneratedFiles.KindReturns 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.返回变量类型为GeneratedFiles.Kind的类型的cn.taketoday.aot.generate中的方法修饰符和类型方法说明private static Function<GeneratedFiles.Kind,Path> FileSystemGeneratedFiles.conventionRoots(Path root) 修饰符和类型方法说明voidFileSystemGeneratedFiles.addFile(GeneratedFiles.Kind kind, String path, InputStreamSource content) voidGeneratedFiles.addFile(GeneratedFiles.Kind kind, String path, InputStreamSource content) Add a generated file of the specifiedGeneratedFiles.Kindwith content from the givenInputStreamSource.default voidGeneratedFiles.addFile(GeneratedFiles.Kind kind, String path, ThrowingConsumer<Appendable> content) Add a generated file of the specifiedGeneratedFiles.Kindwith content written to anAppendablepassed to the givenThrowingConsumer.default voidGeneratedFiles.addFile(GeneratedFiles.Kind kind, String path, CharSequence content) Add a generated file of the specifiedGeneratedFiles.Kindwith content from the givenCharSequence.voidInMemoryGeneratedFiles.addFile(GeneratedFiles.Kind kind, String path, InputStreamSource content) InMemoryGeneratedFiles.getGeneratedFile(GeneratedFiles.Kind kind, String path) Return theInputStreamSourceof specified file.InMemoryGeneratedFiles.getGeneratedFileContent(GeneratedFiles.Kind kind, String path) Return the content of the specified file.InMemoryGeneratedFiles.getGeneratedFiles(GeneratedFiles.Kind kind) Return aMapof the generated files of a specificGeneratedFiles.Kind.类型变量类型为GeneratedFiles.Kind的cn.taketoday.aot.generate中的构造器参数限定符构造器说明Create a newFileSystemGeneratedFilesinstance with all files stored under the root provided by the givenFunction.