org.sonar.batch.scan.filesystem
Class InputPathCache

java.lang.Object
  extended by org.sonar.batch.scan.filesystem.InputPathCache
All Implemented Interfaces:
BatchComponent

public class InputPathCache
extends Object
implements BatchComponent

Cache of all files. This cache is shared amongst all project modules. Inclusion and exclusion patterns are already applied.


Constructor Summary
InputPathCache(Caches caches)
           
 
Method Summary
 Iterable<InputPath> all()
           
 Iterable<InputDir> dirsByModule(String moduleKey)
           
 Iterable<InputFile> filesByModule(String moduleKey)
           
 InputDir getDir(String moduleKey, String relativePath)
           
 InputFile getFile(String moduleKey, String relativePath)
           
 InputPathCache put(String moduleKey, InputDir inputDir)
           
 InputPathCache put(String moduleKey, InputFile inputFile)
           
 InputPathCache remove(String moduleKey, InputDir inputDir)
           
 InputPathCache remove(String moduleKey, InputFile inputFile)
           
 InputPathCache removeModule(String moduleKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputPathCache

public InputPathCache(Caches caches)
Method Detail

all

public Iterable<InputPath> all()

filesByModule

public Iterable<InputFile> filesByModule(String moduleKey)

dirsByModule

public Iterable<InputDir> dirsByModule(String moduleKey)

removeModule

public InputPathCache removeModule(String moduleKey)

remove

public InputPathCache remove(String moduleKey,
                             InputFile inputFile)

remove

public InputPathCache remove(String moduleKey,
                             InputDir inputDir)

put

public InputPathCache put(String moduleKey,
                          InputFile inputFile)

put

public InputPathCache put(String moduleKey,
                          InputDir inputDir)

getFile

@CheckForNull
public InputFile getFile(String moduleKey,
                                      String relativePath)

getDir

public InputDir getDir(String moduleKey,
                       String relativePath)


Copyright © 2009–2015 SonarSource. All rights reserved.