org.sonar.api.batch.fs
Interface FilePredicates

All Known Implementing Classes:
DefaultFilePredicates

public interface FilePredicates

Factory of FilePredicate

Since:
4.2

Method Summary
 FilePredicate all()
          Returns a predicate that always evaluates to true
 FilePredicate and(Collection<FilePredicate> and)
           
 FilePredicate and(FilePredicate... and)
           
 FilePredicate and(FilePredicate first, FilePredicate second)
           
 FilePredicate doesNotMatchPathPattern(String exclusionPattern)
           
 FilePredicate doesNotMatchPathPatterns(String[] exclusionPatterns)
           
 FilePredicate hasAbsolutePath(String s)
          Warning - not efficient because absolute path is not indexed yet.
 FilePredicate hasLanguage(String language)
           
 FilePredicate hasLanguages(Collection<String> languages)
           
 FilePredicate hasLanguages(String... languages)
           
 FilePredicate hasPath(String s)
           
 FilePredicate hasRelativePath(String s)
          TODO document that non-normalized path and Windows-style path are supported
 FilePredicate hasStatus(InputFile.Status status)
           
 FilePredicate hasType(InputFile.Type type)
           
 FilePredicate is(File ioFile)
           
 FilePredicate matchesPathPattern(String inclusionPattern)
           
 FilePredicate matchesPathPatterns(String[] inclusionPatterns)
           
 FilePredicate none()
          Returns a predicate that always evaluates to false
 FilePredicate not(FilePredicate p)
           
 FilePredicate or(Collection<FilePredicate> or)
           
 FilePredicate or(FilePredicate... or)
           
 FilePredicate or(FilePredicate first, FilePredicate second)
           
 

Method Detail

all

FilePredicate all()
Returns a predicate that always evaluates to true


none

FilePredicate none()
Returns a predicate that always evaluates to false


hasAbsolutePath

FilePredicate hasAbsolutePath(String s)
Warning - not efficient because absolute path is not indexed yet.


hasRelativePath

FilePredicate hasRelativePath(String s)
TODO document that non-normalized path and Windows-style path are supported


matchesPathPattern

FilePredicate matchesPathPattern(String inclusionPattern)

matchesPathPatterns

FilePredicate matchesPathPatterns(String[] inclusionPatterns)

doesNotMatchPathPattern

FilePredicate doesNotMatchPathPattern(String exclusionPattern)

doesNotMatchPathPatterns

FilePredicate doesNotMatchPathPatterns(String[] exclusionPatterns)

hasPath

FilePredicate hasPath(String s)

is

FilePredicate is(File ioFile)

hasLanguage

FilePredicate hasLanguage(String language)

hasLanguages

FilePredicate hasLanguages(Collection<String> languages)

hasLanguages

FilePredicate hasLanguages(String... languages)

hasStatus

FilePredicate hasStatus(InputFile.Status status)

hasType

FilePredicate hasType(InputFile.Type type)

not

FilePredicate not(FilePredicate p)

or

FilePredicate or(Collection<FilePredicate> or)

or

FilePredicate or(FilePredicate... or)

or

FilePredicate or(FilePredicate first,
                 FilePredicate second)

and

FilePredicate and(Collection<FilePredicate> and)

and

FilePredicate and(FilePredicate... and)

and

FilePredicate and(FilePredicate first,
                  FilePredicate second)


Copyright © 2009-2014 SonarSource. All Rights Reserved.