aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java
diff options
context:
space:
mode:
authorGravatar Nathan Harmata <nharmata@google.com>2015-11-10 03:24:01 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-11-10 10:28:30 +0000
commit8cd2978e429bdc178e06c0cb42f7ba73cabaeeb5 (patch)
treeda3d1149e3a485fc83686efe96c98cb9e4f456c4 /src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java
parente040fe994c2da2b211858f7985fb736962a4499b (diff)
Allow FilesystemValueChecker to operate on a WalkableGraph and add TODOs for replacing MemoizingEvaluator#getValues et al with WalkableGraph usage. I initially attempted to do this but punted once I realized how much work it would be.
Also make DirectoryListingStateValue and FileStateValue public for use in outside callers of FilesystemValueChecker. -- MOS_MIGRATED_REVID=107447425
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java b/src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java
index b774c5848b..28d4808b15 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java
@@ -58,7 +58,8 @@ public abstract class FileStateValue implements SkyValue {
public static final NonexistentFileStateValue NONEXISTENT_FILE_STATE_NODE =
new NonexistentFileStateValue();
- enum Type {
+ /** Type of a path. */
+ public enum Type {
REGULAR_FILE,
SPECIAL_FILE,
DIRECTORY,
@@ -69,7 +70,7 @@ public abstract class FileStateValue implements SkyValue {
protected FileStateValue() {
}
- static FileStateValue create(RootedPath rootedPath,
+ public static FileStateValue create(RootedPath rootedPath,
@Nullable TimestampGranularityMonitor tsgm) throws InconsistentFilesystemException,
IOException {
Path path = rootedPath.asPath();
@@ -105,7 +106,7 @@ public abstract class FileStateValue implements SkyValue {
return new SkyKey(SkyFunctions.FILE_STATE, rootedPath);
}
- abstract Type getType();
+ public abstract Type getType();
PathFragment getSymlinkTarget() {
throw new IllegalStateException();
@@ -193,7 +194,7 @@ public abstract class FileStateValue implements SkyValue {
}
@Override
- Type getType() {
+ public Type getType() {
return Type.REGULAR_FILE;
}
@@ -261,7 +262,7 @@ public abstract class FileStateValue implements SkyValue {
}
@Override
- Type getType() {
+ public Type getType() {
return Type.SPECIAL_FILE;
}
@@ -307,7 +308,7 @@ public abstract class FileStateValue implements SkyValue {
}
@Override
- Type getType() {
+ public Type getType() {
return Type.DIRECTORY;
}
@@ -338,7 +339,7 @@ public abstract class FileStateValue implements SkyValue {
}
@Override
- Type getType() {
+ public Type getType() {
return Type.SYMLINK;
}
@@ -374,7 +375,7 @@ public abstract class FileStateValue implements SkyValue {
}
@Override
- Type getType() {
+ public Type getType() {
return Type.NONEXISTENT;
}