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 Details

    • DefaultInputDir

      public DefaultInputDir(String moduleKey, String relativePath)
  • Method Details

    • relativePath

      public String relativePath()
      Specified by:
      relativePath in interface org.sonar.api.batch.fs.InputDir
      Specified by:
      relativePath in interface org.sonar.api.batch.fs.InputPath
    • absolutePath

      public String absolutePath()
      Specified by:
      absolutePath in interface org.sonar.api.batch.fs.InputDir
      Specified by:
      absolutePath in interface org.sonar.api.batch.fs.InputPath
    • file

      public File file()
      Specified by:
      file in interface org.sonar.api.batch.fs.InputDir
      Specified by:
      file in interface org.sonar.api.batch.fs.InputPath
    • path

      public Path path()
      Specified by:
      path in interface org.sonar.api.batch.fs.InputDir
      Specified by:
      path in interface org.sonar.api.batch.fs.InputPath
    • moduleKey

      public String moduleKey()
    • key

      public String key()
      Specified by:
      key in interface org.sonar.api.batch.fs.InputComponent
    • setModuleBaseDir

      public DefaultInputDir setModuleBaseDir(Path moduleBaseDir)
      For testing purpose. Will be automatically set when dir is added to DefaultFileSystem
    • isFile

      public boolean isFile()
      Specified by:
      isFile in interface org.sonar.api.batch.fs.InputComponent
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class DefaultInputComponent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DefaultInputComponent
    • toString

      public String toString()
      Overrides:
      toString in class DefaultInputComponent
    • uri

      public URI uri()
      Specified by:
      uri in interface org.sonar.api.batch.fs.InputPath