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:
relativePath
in interfaceorg.sonar.api.batch.fs.IndexedFile
- Specified by:
relativePath
in interfaceorg.sonar.api.batch.fs.InputPath
-
getModuleRelativePath
-
getProjectRelativePath
-
absolutePath
- Specified by:
absolutePath
in interfaceorg.sonar.api.batch.fs.IndexedFile
- Specified by:
absolutePath
in interfaceorg.sonar.api.batch.fs.InputPath
-
file
- Specified by:
file
in interfaceorg.sonar.api.batch.fs.IndexedFile
- Specified by:
file
in interfaceorg.sonar.api.batch.fs.InputPath
-
path
- Specified by:
path
in interfaceorg.sonar.api.batch.fs.IndexedFile
- Specified by:
path
in interfaceorg.sonar.api.batch.fs.InputPath
-
oldRelativePath
-
inputStream
- Specified by:
inputStream
in interfaceorg.sonar.api.batch.fs.IndexedFile
- Throws:
IOException
-
language
- Specified by:
language
in interfaceorg.sonar.api.batch.fs.IndexedFile
-
type
public org.sonar.api.batch.fs.InputFile.Type type()- Specified by:
type
in interfaceorg.sonar.api.batch.fs.IndexedFile
-
key
Component key (without branch).- Specified by:
key
in interfaceorg.sonar.api.batch.fs.InputComponent
-
equals
- Overrides:
equals
in classDefaultInputComponent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDefaultInputComponent
-
toString
- Overrides:
toString
in classDefaultInputComponent
-
isFile
public boolean isFile()- Specified by:
isFile
in interfaceorg.sonar.api.batch.fs.InputComponent
-
filename
- Specified by:
filename
in interfaceorg.sonar.api.batch.fs.IndexedFile
-
uri
- Specified by:
uri
in interfaceorg.sonar.api.batch.fs.IndexedFile
- Specified by:
uri
in interfaceorg.sonar.api.batch.fs.InputPath
-