Uses of Class
org.springframework.aot.test.generator.file.SourceFile
Package
Description
Support classes for compiling and testing generated code.
Support classes for running assertions on generated files.
-
Uses of SourceFile in org.springframework.aot.test.generator.compile
Modifier and TypeMethodDescriptionCompiled.getSourceFile()
Return the single source file that was compiled.Modifier and TypeMethodDescriptionvoid
TestCompiler.compile
(SourceFile sourceFile, Consumer<Compiled> compiled) Compile content from this instance along with the additional provided source file.TestCompiler.withSources
(SourceFile... sourceFiles) Return a newTestCompiler
instance with addition source files. -
Uses of SourceFile in org.springframework.aot.test.generator.file
Modifier and TypeMethodDescriptionGet theSourceFile
with the givenDynamicFile#getPath() path
.SourceFiles.getSingle()
Return the single source file contained in the collection.static SourceFile
SourceFile.of
(CharSequence charSequence) Factory method to create a newSourceFile
from the givenCharSequence
.static SourceFile
SourceFile.of
(String path, CharSequence charSequence) Factory method to create a newSourceFile
from the givenCharSequence
.static SourceFile
SourceFile.of
(String path, WritableContent writableContent) Factory method to create a newSourceFile
from the givenWritableContent
.static SourceFile
SourceFile.of
(WritableContent writableContent) Factory method to create a newSourceFile
from the givenWritableContent
.Modifier and TypeMethodDescriptionSourceFiles.iterator()
SourceFiles.stream()
Stream theSourceFile
instances contained in this collection.Modifier and TypeMethodDescriptionSourceFiles.and
(SourceFile... sourceFiles) Return a newSourceFiles
instance that merges files from another array ofSourceFile
instances.static SourceFiles
SourceFiles.of
(SourceFile... sourceFiles) Factory method that can be used to create aSourceFiles
instance containing the specified files.