public class PrefixMapDebugPathSanitizer extends DebugPathSanitizer
Constructor and Description |
---|
PrefixMapDebugPathSanitizer(String fakeCompilationDirectory,
com.google.common.collect.ImmutableBiMap<Path,String> other) |
PrefixMapDebugPathSanitizer(String fakeCompilationDirectory,
com.google.common.collect.ImmutableBiMap<Path,String> other,
boolean useUnixPathSeparator) |
Modifier and Type | Method and Description |
---|---|
protected Iterable<Map.Entry<Path,String>> |
getAllPaths(Optional<Path> workingDir) |
String |
getCompilationDirectory() |
com.google.common.collect.ImmutableMap<String,String> |
getCompilationEnvironment(Path workingDir,
boolean shouldSanitize) |
com.google.common.collect.ImmutableList<String> |
getCompilationFlags(Compiler compiler,
Path workingDir,
com.google.common.collect.ImmutableMap<Path,Path> prefixMap) |
void |
restoreCompilationDirectory(Path path,
Path workingDir) |
getPaddedDir, sanitizeFlags, sanitizer
public PrefixMapDebugPathSanitizer(String fakeCompilationDirectory, com.google.common.collect.ImmutableBiMap<Path,String> other, boolean useUnixPathSeparator)
public String getCompilationDirectory()
getCompilationDirectory
in class DebugPathSanitizer
public com.google.common.collect.ImmutableMap<String,String> getCompilationEnvironment(Path workingDir, boolean shouldSanitize)
getCompilationEnvironment
in class DebugPathSanitizer
public void restoreCompilationDirectory(Path path, Path workingDir)
restoreCompilationDirectory
in class DebugPathSanitizer
public com.google.common.collect.ImmutableList<String> getCompilationFlags(Compiler compiler, Path workingDir, com.google.common.collect.ImmutableMap<Path,Path> prefixMap)
getCompilationFlags
in class DebugPathSanitizer
protected Iterable<Map.Entry<Path,String>> getAllPaths(Optional<Path> workingDir)
getAllPaths
in class DebugPathSanitizer