Package org.sonar.api.batch.fs.internal
Class DefaultIndexedFile
java.lang.Object
org.sonar.api.batch.fs.internal.DefaultInputComponent
org.sonar.api.batch.fs.internal.DefaultIndexedFile
- All Implemented Interfaces:
org.sonar.api.batch.fs.IndexedFile,org.sonar.api.batch.fs.InputComponent,org.sonar.api.batch.fs.InputPath
@Immutable
public class DefaultIndexedFile
extends DefaultInputComponent
implements org.sonar.api.batch.fs.IndexedFile
- Since:
- 6.3
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultIndexedFile(String projectKey, Path baseDir, String relativePath, String language) Testing purposes only!DefaultIndexedFile(Path absolutePath, String projectKey, String projectRelativePath, String moduleRelativePath, org.sonar.api.batch.fs.InputFile.Type type, String language, int batchId, SensorStrategy sensorStrategy) DefaultIndexedFile(Path absolutePath, String projectKey, String projectRelativePath, String moduleRelativePath, org.sonar.api.batch.fs.InputFile.Type type, String language, int batchId, SensorStrategy sensorStrategy, String oldRelativeFilePath) -
Method Summary
Methods inherited from class org.sonar.api.batch.fs.internal.DefaultInputComponent
hasMeasureFor, scannerId, setHasMeasureFor
-
Constructor Details
-
Method Details
-
relativePath
- Specified by:
relativePathin interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
relativePathin interfaceorg.sonar.api.batch.fs.InputPath
-
getModuleRelativePath
-
getProjectRelativePath
-
absolutePath
- Specified by:
absolutePathin interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
absolutePathin interfaceorg.sonar.api.batch.fs.InputPath
-
file
- Specified by:
filein interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
filein interfaceorg.sonar.api.batch.fs.InputPath
-
path
- Specified by:
pathin interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
pathin interfaceorg.sonar.api.batch.fs.InputPath
-
oldRelativePath
-
inputStream
- Specified by:
inputStreamin interfaceorg.sonar.api.batch.fs.IndexedFile- Throws:
IOException
-
language
- Specified by:
languagein interfaceorg.sonar.api.batch.fs.IndexedFile
-
type
public org.sonar.api.batch.fs.InputFile.Type type()- Specified by:
typein interfaceorg.sonar.api.batch.fs.IndexedFile
-
key
Component key (without branch).- Specified by:
keyin interfaceorg.sonar.api.batch.fs.InputComponent
-
equals
- Overrides:
equalsin classDefaultInputComponent
-
hashCode
public int hashCode()- Overrides:
hashCodein classDefaultInputComponent
-
toString
- Overrides:
toStringin classDefaultInputComponent
-
isFile
public boolean isFile()- Specified by:
isFilein interfaceorg.sonar.api.batch.fs.InputComponent
-
filename
- Specified by:
filenamein interfaceorg.sonar.api.batch.fs.IndexedFile
-
uri
- Specified by:
uriin interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
uriin interfaceorg.sonar.api.batch.fs.InputPath
-