org.sonar.api.scan.filesystem
Class PathResolver

java.lang.Object
  extended by org.sonar.api.scan.filesystem.PathResolver
All Implemented Interfaces:
BatchComponent

public class PathResolver
extends Object
implements BatchComponent

Since:
3.5

Nested Class Summary
static class PathResolver.RelativePath
           
 
Constructor Summary
PathResolver()
           
 
Method Summary
 File relativeFile(File dir, String path)
           
 List<File> relativeFiles(File dir, List<String> paths)
           
 PathResolver.RelativePath relativePath(Collection<File> dirs, File file)
           
 String relativePath(File dir, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathResolver

public PathResolver()
Method Detail

relativeFile

public File relativeFile(File dir,
                         String path)

relativeFiles

public List<File> relativeFiles(File dir,
                                List<String> paths)

relativePath

@CheckForNull
public PathResolver.RelativePath relativePath(Collection<File> dirs,
                                                           File file)

relativePath

@CheckForNull
public String relativePath(File dir,
                                        File file)


Copyright © 2009-2014 SonarSource. All Rights Reserved.