Package spoon.support
Class DefaultOutputDestinationHandler
java.lang.Object
spoon.support.DefaultOutputDestinationHandler
- All Implemented Interfaces:
OutputDestinationHandler
Default behavior for the destination of the spoon.
-
Constructor Summary
ConstructorDescriptionDefaultOutputDestinationHandler(File defaultOutputDirectory, Environment environment)
-
Method Summary
Modifier and TypeMethodDescriptionprotected Path
getDirectoryPath(CtModule module, CtPackage pack, CtType type)
protected String
getFileName(CtPackage pack, CtType type)
protected Path
getModulePath(CtModule module)
getOutputPath(CtModule module, CtPackage pack, CtType type)
protected Path
getPackagePath(CtPackage pack)
-
Constructor Details
-
DefaultOutputDestinationHandler
-
-
Method Details
-
getOutputPath
- Specified by:
getOutputPath
in interfaceOutputDestinationHandler
-
getFileName
- Parameters:
pack
-type
-- Returns:
- return the filename of the current element
-
getPackagePath
- Parameters:
pack
-- Returns:
- the path of the package
-
getModulePath
- Parameters:
module
-- Returns:
- return the path of the module
-
getDirectoryPath
- Parameters:
module
-pack
-type
-- Returns:
- the root path of the destination
-
getDefaultOutputDirectory
- Specified by:
getDefaultOutputDirectory
in interfaceOutputDestinationHandler
-
getEnvironment
-