类 InMemoryGeneratedFiles
java.lang.Object
cn.taketoday.aot.generate.InMemoryGeneratedFiles
- 所有已实现的接口:
GeneratedFiles
GeneratedFiles implementation that keeps generated files in-memory.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb
-
嵌套类概要
从接口继承的嵌套类/接口 cn.taketoday.aot.generate.GeneratedFiles
GeneratedFiles.Kind -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddFile(GeneratedFiles.Kind kind, String path, InputStreamSource content) Add a generated file of the specifiedGeneratedFiles.Kindwith content from the givenInputStreamSource.getGeneratedFile(GeneratedFiles.Kind kind, String path) Return theInputStreamSourceof specified file.getGeneratedFileContent(GeneratedFiles.Kind kind, String path) Return the content of the specified file.Return aMapof the generated files of a specificGeneratedFiles.Kind.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.aot.generate.GeneratedFiles
addClassFile, addFile, addFile, addResourceFile, addResourceFile, addResourceFile, addSourceFile, addSourceFile, addSourceFile, addSourceFile
-
字段详细资料
-
files
-
-
构造器详细资料
-
InMemoryGeneratedFiles
public InMemoryGeneratedFiles()
-
-
方法详细资料
-
addFile
从接口复制的说明:GeneratedFilesAdd a generated file of the specifiedGeneratedFiles.Kindwith content from the givenInputStreamSource.- 指定者:
addFile在接口中GeneratedFiles- 参数:
kind- the kind of file being writtenpath- the relative path of the filecontent- anInputStreamSourcethat will provide an input stream containing the file contents
-
getGeneratedFiles
Return aMapof the generated files of a specificGeneratedFiles.Kind.- 参数:
kind- the kind of generated file- 返回:
- a
Mapof paths toInputStreamSourceinstances
-
getGeneratedFileContent
@Nullable public String getGeneratedFileContent(GeneratedFiles.Kind kind, String path) throws IOException Return the content of the specified file.- 参数:
kind- the kind of generated filepath- the path of the file- 返回:
- the file content or
nullif no file could be found - 抛出:
IOException- on read error
-
getGeneratedFile
Return theInputStreamSourceof specified file.- 参数:
kind- the kind of generated filepath- the path of the file- 返回:
- the file source or
nullif no file could be found
-