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 ProjectDefinitiondefinition()java.nio.file.PathgetBaseDir()java.lang.StringgetBranch()java.lang.StringgetDescription()java.nio.charset.CharsetgetEncoding()java.lang.StringgetKeyWithBranch()java.lang.StringgetName()java.lang.StringgetOriginalName()java.nio.file.PathgetWorkDir()booleanisFile()Is the component anInputFilejava.lang.Stringkey()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:InputComponentIs 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()
-
-