Uses of Class
org.springframework.aot.test.generator.file.SourceFile
Packages that use 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
Methods in org.springframework.aot.test.generator.compile that return SourceFileModifier and TypeMethodDescriptionCompiled.getSourceFile()Return the single source file that was compiled.Methods in org.springframework.aot.test.generator.compile with parameters of type SourceFileModifier and TypeMethodDescriptionvoidTestCompiler.compile(SourceFile sourceFile, Consumer<Compiled> compiled) Compile content from this instance along with the additional provided source file.TestCompiler.withSources(SourceFile... sourceFiles) Return a newTestCompilerinstance with addition source files. -
Uses of SourceFile in org.springframework.aot.test.generator.file
Methods in org.springframework.aot.test.generator.file that return SourceFileModifier and TypeMethodDescriptionGet theSourceFilewith the givenDynamicFile#getPath() path.SourceFiles.getSingle()Return the single source file contained in the collection.static SourceFileSourceFile.of(CharSequence charSequence) Factory method to create a newSourceFilefrom the givenCharSequence.static SourceFileSourceFile.of(String path, CharSequence charSequence) Factory method to create a newSourceFilefrom the givenCharSequence.static SourceFileSourceFile.of(String path, WritableContent writableContent) Factory method to create a newSourceFilefrom the givenWritableContent.static SourceFileSourceFile.of(WritableContent writableContent) Factory method to create a newSourceFilefrom the givenWritableContent.Methods in org.springframework.aot.test.generator.file that return types with arguments of type SourceFileModifier and TypeMethodDescriptionSourceFiles.iterator()SourceFiles.stream()Stream theSourceFileinstances contained in this collection.Methods in org.springframework.aot.test.generator.file with parameters of type SourceFileModifier and TypeMethodDescriptionSourceFiles.and(SourceFile... sourceFiles) Return a newSourceFilesinstance that merges files from another array ofSourceFileinstances.static SourceFilesSourceFiles.of(SourceFile... sourceFiles) Factory method that can be used to create aSourceFilesinstance containing the specified files.