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.StringabsolutePath()booleanequals(java.lang.Object o)java.io.Filefile()inthashCode()booleanisFile()java.lang.Stringkey()java.lang.StringmoduleKey()java.nio.file.Pathpath()java.lang.StringrelativePath()DefaultInputDirsetModuleBaseDir(java.nio.file.Path moduleBaseDir)For testing purpose.java.lang.StringtoString()java.net.URIuri()-
Methods inherited from class org.sonar.api.batch.fs.internal.DefaultInputComponent
hasMeasureFor, scannerId, setHasMeasureFor
-
-
-
-
Method Detail
-
relativePath
public java.lang.String relativePath()
- Specified by:
relativePathin interfaceorg.sonar.api.batch.fs.InputDir- Specified by:
relativePathin interfaceorg.sonar.api.batch.fs.InputPath
-
absolutePath
public java.lang.String absolutePath()
- Specified by:
absolutePathin interfaceorg.sonar.api.batch.fs.InputDir- Specified by:
absolutePathin interfaceorg.sonar.api.batch.fs.InputPath
-
file
public java.io.File file()
- Specified by:
filein interfaceorg.sonar.api.batch.fs.InputDir- Specified by:
filein interfaceorg.sonar.api.batch.fs.InputPath
-
path
public java.nio.file.Path path()
- Specified by:
pathin interfaceorg.sonar.api.batch.fs.InputDir- Specified by:
pathin interfaceorg.sonar.api.batch.fs.InputPath
-
moduleKey
public java.lang.String moduleKey()
-
key
public java.lang.String key()
- Specified by:
keyin 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:
isFilein interfaceorg.sonar.api.batch.fs.InputComponent
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classDefaultInputComponent
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDefaultInputComponent
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDefaultInputComponent
-
uri
public java.net.URI uri()
- Specified by:
uriin interfaceorg.sonar.api.batch.fs.InputPath
-
-