public class DefaultInputDir extends DefaultInputComponent implements InputDir
| Constructor and Description |
|---|
DefaultInputDir(String moduleKey,
String relativePath) |
DefaultInputDir(String moduleKey,
String relativePath,
int batchId) |
| Modifier and Type | Method and Description |
|---|---|
String |
absolutePath()
Normalized absolute path.
|
boolean |
equals(Object o) |
File |
file()
The underlying absolute
File |
int |
hashCode() |
boolean |
isFile()
Is the component an
InputFile |
String |
key()
Component key shared by all part of SonarQube (batch, server, WS...).
|
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() |
batchIdpublic DefaultInputDir(String moduleKey, String relativePath)
public DefaultInputDir(String moduleKey, String relativePath, int batchId)
public String relativePath()
InputDirFileSystem. File separator is the forward
slash ('/'), even on Microsoft Windows.
src/main/java/com if module base dir is
/path/to/module and if directory is
/path/to/module/src/main/java/com.
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 String key()
InputComponentkey in interface InputComponentpublic DefaultInputDir setModuleBaseDir(Path moduleBaseDir)
DefaultFileSystempublic boolean isFile()
InputComponentInputFileisFile in interface InputComponentpublic boolean equals(Object o)
equals in class DefaultInputComponentpublic int hashCode()
hashCode in class DefaultInputComponentpublic String toString()
toString in class DefaultInputComponentCopyright © 2009–2017 SonarSource. All rights reserved.