public abstract class SourceWithFlags extends Object implements Comparable<SourceWithFlags>, AddsToRuleKey
SourcePath and a list of
file-specific flags.| Constructor and Description |
|---|
SourceWithFlags() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SourceWithFlags that) |
abstract com.google.common.collect.ImmutableList<String> |
getFlags() |
abstract SourcePath |
getSourcePath() |
static SourceWithFlags |
of(SourcePath sourcePath) |
static SourceWithFlags |
of(SourcePath sourcePath,
com.google.common.collect.ImmutableList<String> flags) |
SourceWithFlags |
withSourcePath(SourcePath sourcePath) |
public abstract SourcePath getSourcePath()
public abstract com.google.common.collect.ImmutableList<String> getFlags()
public int compareTo(SourceWithFlags that)
compareTo in interface Comparable<SourceWithFlags>public static SourceWithFlags of(SourcePath sourcePath)
public static SourceWithFlags of(SourcePath sourcePath, com.google.common.collect.ImmutableList<String> flags)
public SourceWithFlags withSourcePath(SourcePath sourcePath)