Class 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 Detail

      • DefaultInputDir

        public DefaultInputDir​(java.lang.String moduleKey,
                               java.lang.String relativePath)
    • Method Detail

      • relativePath

        public java.lang.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 java.lang.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 java.io.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 java.nio.file.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 java.lang.String moduleKey()
      • key

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

        public DefaultInputDir setModuleBaseDir​(java.nio.file.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
      • uri

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