saveAll

open fun saveAll(root: Path, encoding: Charset): SourceRoot(source)

Saves all cached compilation units to the specified root directory. Path resolution follows java.nio.file.Path.resolve semantics: - Relative paths are resolved against the provided root. - Absolute paths remain unchanged (only normalized).

Return

this SourceRoot instance

Parameters

root

the destination root directory

encoding

the character encoding used when writing files

Throws


open fun saveAll(root: Path): SourceRoot(source)

Save all previously parsed files back to a new path.

Parameters

root

the root of the java packages


Save all previously parsed files back to where they were found.


open fun saveAll(encoding: Charset): SourceRoot(source)

Save all previously parsed files back to where they were found, with the given encoding.

Parameters

encoding

the encoding to use.