|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.api.batch.fs.internal.DefaultInputDir
public class DefaultInputDir
| Constructor Summary | |
|---|---|
DefaultInputDir(String relativePath)
|
|
| Method Summary | |
|---|---|
String |
absolutePath()
Marked as nullable just for the unit tests that do not call setFile(java.io.File)
previously. |
boolean |
equals(Object o)
|
File |
file()
The underlying absolute File |
int |
hashCode()
|
String |
key()
Component key. |
String |
relativePath()
Path relative to module base directory. |
DefaultInputDir |
setAbsolutePath(String s)
|
DefaultInputDir |
setFile(File file)
|
DefaultInputDir |
setKey(String s)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultInputDir(String relativePath)
| Method Detail |
|---|
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()@CheckForNull public String absolutePath()
setFile(java.io.File)
previously.
absolutePath in interface InputDirabsolutePath in interface InputPathInputFile.absolutePath(),
InputDir.absolutePath()public File file()
InputDirFile
file in interface InputDirfile in interface InputPathInputFile.file(),
InputDir.file()@CheckForNull public String key()
setKey(String).
public DefaultInputDir setAbsolutePath(String s)
public DefaultInputDir setFile(File file)
public DefaultInputDir setKey(String s)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||