Uses of Interface
io.github.ascopes.jct.workspaces.ManagedDirectory
Package
Description
Workspace components to hold complex source code structures within memory.
-
Uses of ManagedDirectory in io.github.ascopes.jct.workspaces
Modifier and TypeMethodDescriptiondefault ManagedDirectory
ManagedDirectory.also()
Method that returns the object it is called upon to enable creating fluent-language builders.default ManagedDirectory
ManagedDirectory.and()
Method that returns the object it is called upon to enable creating fluent-language builders.Take the directory, represented by the givenManagedDirectory
, and convert it into a JAR file, that will be written to the file being created.Take the directory, represented by the given path, and convert it into a JAR file, that will be written to the file being created.FileBuilder.copiedFromClassPath
(ClassLoader classLoader, String resource) Copy a resource from the given class loader into the file system.FileBuilder.copiedFromClassPath
(String resource) Copy a resource from the class loader on the current thread into the file system.FileBuilder.copiedFromFile
(File file) Copy the contents from the given file into the file system.FileBuilder.copiedFromFile
(Path file) Copy the contents from the given path into the file system.FileBuilder.copiedFromUrl
(URL url) Copy the contents from the given URL into the file system.DirectoryBuilder.copyContentsFrom
(File dir) Copy the contents of the directory at the given path recursively into this directory.default ManagedDirectory
DirectoryBuilder.copyContentsFrom
(String... fragments) Copy the contents of the directory at the given path recursively into this directory.DirectoryBuilder.copyContentsFrom
(Path rootDir) Copy the contents of the directory at the given path recursively into this directory.DirectoryBuilder.copyContentsFrom
(List<String> fragments) Copy the contents of the directory at the given path recursively into this directory.default ManagedDirectory
Workspace.createAnnotationProcessorPathModule
(String moduleName) Create a module in theannotation processor module path
.default ManagedDirectory
Workspace.createAnnotationProcessorPathPackage()
Create a package in theannotation processor path
.default ManagedDirectory
Workspace.createClassOutputModule
(String moduleName) Create a module in theclass outputs
.default ManagedDirectory
Workspace.createClassOutputPackage()
Create a package in theclass outputs
.default ManagedDirectory
Workspace.createClassPathPackage()
Create a package in theclass path
.Workspace.createModule
(JavaFileManager.Location location, String moduleName) Create a new test directory for a package root and associate it with the given module name in the given location.default ManagedDirectory
Workspace.createModulePathModule
(String moduleName) Create a module in themodule path
.Workspace.createPackage
(JavaFileManager.Location location) Create a new test directory for a package root and associate it with the given location.default ManagedDirectory
Workspace.createSourceOutputModule
(String moduleName) Create a module in thegenerated source outputs
.default ManagedDirectory
Workspace.createSourceOutputPackage()
Create a package in thegenerated source outputs
.default ManagedDirectory
Workspace.createSourcePathModule
(String moduleName) Create a module in themodule source path
.default ManagedDirectory
Workspace.createSourcePathPackage()
Create a package in thesource path
.FileBuilder.fromInputStream
(InputStream inputStream) Copy the contents from the given input stream into the file system.PathStrategy.newInstance
(String name) Create a new instance of the test directory type with the given name.DirectoryBuilder.thatIsEmpty()
Create an empty directory.FileBuilder.thatIsEmpty()
Create the file but do not put anything in it.default ManagedDirectory
ManagedDirectory.then()
Method that returns the object it is called upon to enable creating fluent-language builders.FileBuilder.withContents
(byte[] contents) Create the file with the given byte contents.default ManagedDirectory
FileBuilder.withContents
(String... lines) Create the file with the given contents as UTF-8.default ManagedDirectory
FileBuilder.withContents
(ByteBuffer buffer) An overload ofFileBuilder.withContents(byte[])
that consumes a NIO byte buffer.default ManagedDirectory
FileBuilder.withContents
(Charset charset, String... lines) Create the file with the given contents.FileBuilder.withContents
(Charset charset, List<String> lines) Create the file with the given contents.FileBuilder.withContents
(List<String> lines) Create the file with the given contents as UTF-8.