Package org.sonar.api.batch.fs.internal
Class AbstractProjectOrModule
- java.lang.Object
-
- org.sonar.api.batch.fs.internal.DefaultInputComponent
-
- org.sonar.api.batch.fs.internal.AbstractProjectOrModule
-
- All Implemented Interfaces:
InputComponent
- Direct Known Subclasses:
DefaultInputModule
,DefaultInputProject
@Immutable public abstract class AbstractProjectOrModule extends DefaultInputComponent
-
-
Constructor Summary
Constructors Constructor Description AbstractProjectOrModule(ProjectDefinition definition, int scannerComponentId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectDefinition
definition()
java.nio.file.Path
getBaseDir()
java.lang.String
getBranch()
java.lang.String
getDescription()
java.nio.charset.Charset
getEncoding()
java.lang.String
getKeyWithBranch()
java.lang.String
getName()
java.lang.String
getOriginalName()
java.nio.file.Path
getWorkDir()
boolean
isFile()
Is the component anInputFile
java.lang.String
key()
Module key without branchjava.util.Map<java.lang.String,java.lang.String>
properties()
-
Methods inherited from class org.sonar.api.batch.fs.internal.DefaultInputComponent
equals, hashCode, hasMeasureFor, scannerId, setHasMeasureFor, toString
-
-
-
-
Constructor Detail
-
AbstractProjectOrModule
public AbstractProjectOrModule(ProjectDefinition definition, int scannerComponentId)
-
-
Method Detail
-
key
public java.lang.String key()
Module key without branch
-
isFile
public boolean isFile()
Description copied from interface:InputComponent
Is the component anInputFile
-
definition
public ProjectDefinition definition()
-
getBaseDir
public java.nio.file.Path getBaseDir()
-
getWorkDir
public java.nio.file.Path getWorkDir()
-
getKeyWithBranch
public java.lang.String getKeyWithBranch()
-
getBranch
@CheckForNull public java.lang.String getBranch()
-
properties
public java.util.Map<java.lang.String,java.lang.String> properties()
-
getOriginalName
@CheckForNull public java.lang.String getOriginalName()
-
getName
public java.lang.String getName()
-
getDescription
public java.lang.String getDescription()
-
getEncoding
public java.nio.charset.Charset getEncoding()
-
-