Uses of Class
org.springframework.aot.test.generate.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.generate.compile
Methods in org.springframework.aot.test.generate.compile that return SourceFileModifier and TypeMethodDescriptionCompiled.getSourceFile()Return the single source file that was compiled.Compiled.getSourceFile(String pattern) Return the single matching source file that was compiled.Compiled.getSourceFileFromPackage(String packageName) Return the single source file that was compiled in the given package.Methods in org.springframework.aot.test.generate.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) Create a newTestCompilerinstance with additional source files.Method parameters in org.springframework.aot.test.generate.compile with type arguments of type SourceFileModifier and TypeMethodDescriptionTestCompiler.withSources(Iterable<SourceFile> sourceFiles) Create a newTestCompilerinstance with additional source files. -
Uses of SourceFile in org.springframework.aot.test.generate.file
Methods in org.springframework.aot.test.generate.file that return SourceFileModifier and TypeMethodDescriptionGet theSourceFilewith the given path.SourceFiles.getSingle()Return the single source file contained in the collection.Return the single matching source file contained in the collection.SourceFiles.getSingleFromPackage(String packageName) Return a single source file contained in the specified package.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(String path, InputStreamSource inputStreamSource) Factory method to create a newSourceFilefrom the givenInputStreamSource.static SourceFileSourceFile.of(WritableContent writableContent) Factory method to create a newSourceFilefrom the givenWritableContent.static SourceFileSourceFile.of(InputStreamSource inputStreamSource) Factory method to create a newSourceFilefrom the givenInputStreamSource.Methods in org.springframework.aot.test.generate.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.generate.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.Method parameters in org.springframework.aot.test.generate.file with type arguments of type SourceFileModifier and TypeMethodDescriptionSourceFiles.and(Iterable<SourceFile> sourceFiles) Return a newSourceFilesinstance that merges files from another array ofSourceFileinstances.