Class RelativePathPredicate

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean apply​(org.sonar.api.batch.fs.InputFile f)  
      java.lang.Iterable<org.sonar.api.batch.fs.InputFile> get​(org.sonar.api.batch.fs.FileSystem.Index index)
      Get all files that are valid for this predicate.
      java.lang.String path()  
      int priority()
      For optimization.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • path

        public java.lang.String path()
      • apply

        public boolean apply​(org.sonar.api.batch.fs.InputFile f)
      • priority

        public int priority()
        Description copied from interface: OptimizedFilePredicate
        For optimization. FilePredicates will be applied in priority order. For example when doing p.and(p1, p2, p3) then p1, p2 and p3 will be applied according to their priority value. Higher priority value are applied first. Assign a high priority when the predicate will likely highly reduce the set of InputFiles to filter. Also RelativePathPredicate and AbsolutePathPredicate have a high priority since they are using cache index.
        Specified by:
        priority in interface OptimizedFilePredicate
        Overrides:
        priority in class AbstractFilePredicate