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
ConstructorsConstructorDescriptionDefaultOutputDestinationHandler(File defaultOutputDirectory, Environment environment) -
Method Summary
Modifier and TypeMethodDescriptionprotected PathgetDirectoryPath(CtModule module, CtPackage pack, CtType type)protected StringgetFileName(CtPackage pack, CtType type)protected PathgetModulePath(CtModule module)getOutputPath(CtModule module, CtPackage pack, CtType type)protected PathgetPackagePath(CtPackage pack)
-
Constructor Details
-
DefaultOutputDestinationHandler
-
-
Method Details
-
getOutputPath
- Specified by:
getOutputPathin 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:
getDefaultOutputDirectoryin interfaceOutputDestinationHandler
-
getEnvironment
-