Package org.sonar.api.batch.fs.internal
Class DefaultInputDir
- java.lang.Object
-
- org.sonar.api.batch.fs.internal.DefaultInputComponent
-
- org.sonar.api.batch.fs.internal.DefaultInputDir
-
- All Implemented Interfaces:
org.sonar.api.batch.fs.InputComponent
,org.sonar.api.batch.fs.InputDir
,org.sonar.api.batch.fs.InputPath
public class DefaultInputDir extends DefaultInputComponent implements org.sonar.api.batch.fs.InputDir
- Since:
- 4.5
-
-
Constructor Summary
Constructors Constructor Description DefaultInputDir(java.lang.String moduleKey, java.lang.String relativePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
absolutePath()
boolean
equals(java.lang.Object o)
java.io.File
file()
int
hashCode()
boolean
isFile()
java.lang.String
key()
java.lang.String
moduleKey()
java.nio.file.Path
path()
java.lang.String
relativePath()
DefaultInputDir
setModuleBaseDir(java.nio.file.Path moduleBaseDir)
For testing purpose.java.lang.String
toString()
java.net.URI
uri()
-
Methods inherited from class org.sonar.api.batch.fs.internal.DefaultInputComponent
hasMeasureFor, scannerId, setHasMeasureFor
-
-
-
-
Method Detail
-
relativePath
public java.lang.String relativePath()
- Specified by:
relativePath
in interfaceorg.sonar.api.batch.fs.InputDir
- Specified by:
relativePath
in interfaceorg.sonar.api.batch.fs.InputPath
-
absolutePath
public java.lang.String absolutePath()
- Specified by:
absolutePath
in interfaceorg.sonar.api.batch.fs.InputDir
- Specified by:
absolutePath
in interfaceorg.sonar.api.batch.fs.InputPath
-
file
public java.io.File file()
- Specified by:
file
in interfaceorg.sonar.api.batch.fs.InputDir
- Specified by:
file
in interfaceorg.sonar.api.batch.fs.InputPath
-
path
public java.nio.file.Path path()
- Specified by:
path
in interfaceorg.sonar.api.batch.fs.InputDir
- Specified by:
path
in interfaceorg.sonar.api.batch.fs.InputPath
-
moduleKey
public java.lang.String moduleKey()
-
key
public java.lang.String key()
- Specified by:
key
in interfaceorg.sonar.api.batch.fs.InputComponent
-
setModuleBaseDir
public DefaultInputDir setModuleBaseDir(java.nio.file.Path moduleBaseDir)
For testing purpose. Will be automatically set when dir is added toDefaultFileSystem
-
isFile
public boolean isFile()
- Specified by:
isFile
in interfaceorg.sonar.api.batch.fs.InputComponent
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classDefaultInputComponent
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefaultInputComponent
-
toString
public java.lang.String toString()
- Overrides:
toString
in classDefaultInputComponent
-
uri
public java.net.URI uri()
- Specified by:
uri
in interfaceorg.sonar.api.batch.fs.InputPath
-
-