public class DefaultInputDir extends Object implements InputDir
| Constructor and Description |
|---|
DefaultInputDir(String moduleKey,
String relativePath) |
| Modifier and Type | Method and Description |
|---|---|
String |
absolutePath()
Normalized absolute path.
|
boolean |
equals(Object o) |
File |
file()
The underlying absolute
File |
int |
hashCode() |
String |
key() |
String |
moduleKey() |
Path |
path()
The underlying absolute
Path |
String |
relativePath()
Path relative to module base directory.
|
DefaultInputDir |
setModuleBaseDir(Path moduleBaseDir)
For testing purpose.
|
String |
toString() |
public DefaultInputDir(String moduleKey, String relativePath)
public String relativePath()
InputDirFileSystem. File separator is the forward
slash ('/'), even on Microsoft Windows.
Returns src/main/java/com if module base dir is
/path/to/module and if directory is
/path/to/module/src/main/java/com.
Relative path is not null and is normalized ('foo/../foo' is replaced by 'foo').relativePath in interface InputDirrelativePath in interface InputPathInputFile.relativePath(),
InputDir.relativePath()public String absolutePath()
InputDirfile().getCanonicalPath() to resolve symbolic link.absolutePath in interface InputDirabsolutePath in interface InputPathInputFile.absolutePath(),
InputDir.absolutePath()public File file()
InputDirFilefile in interface InputDirfile in interface InputPathInputFile.file(),
InputDir.file()public Path path()
InputDirPathpath in interface InputDirpath in interface InputPathInputFile.path(),
InputDir.path()public DefaultInputDir setModuleBaseDir(Path moduleBaseDir)
DefaultFileSystemCopyright © 2009–2015 SonarSource. All rights reserved.