Class DecomposedPath
- java.lang.Object
-
- com.thomasjensen.checkstyle.addons.checks.misc.DecomposedPath
-
@Immutable public class DecomposedPath extends Object
Encapsulates the components of a checked file path.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getFileExtensions()StringgetMdlPath()StringgetModulePath()StringgetSimpleFilename()List<String>getSpecificFolders()StringgetSpecificPath()
-
-
-
Constructor Detail
-
DecomposedPath
public DecomposedPath(@Nonnull String pModulePath, @Nonnull String pMdlPath, @Nonnull String pSpecificPath, @Nonnull String pSimpleFilename, @Nonnull Set<String> pFileExtensions, @Nonnull List<String> pSpecificFolders)
Constructor.- Parameters:
pModulePath- the module path, for examplesubsystem1/module1pMdlPath- the MDL path, for examplesrc/main/javapSpecificPath- the specific path, for examplecom/acme/Foo.javapSimpleFilename- the simple file name, for exampleFoo.javapFileExtensions- the list of file extensions, for examplejava, but it could be a list if multiple dots are present (e.g.tar.gz, gz)pSpecificFolders- the simple names of all folders on the specific path, for examplecom, acme
-
-