nharmata | d533996 | 2022-02-11 14:44:08 -0800 | [diff] [blame] | 1 | // Copyright 2022 The Bazel Authors. All rights reserved. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | package com.google.devtools.build.lib.vfs; |
| 15 | |
| 16 | import com.google.devtools.build.skyframe.SkyFunctionName; |
| 17 | import com.google.devtools.build.skyframe.SkyKey; |
| 18 | |
| 19 | /** |
| 20 | * The SkyKey for FileStateValue. |
| 21 | * |
| 22 | * <p>This interface exists to allow {@link RootedPath} to implement {@link SkyKey} in such a way |
| 23 | * that makes it obvious that {@link RootedPath} is the {@link SkyKey} for FileStateValue. |
| 24 | */ |
| 25 | public interface FileStateKey extends SkyKey { |
| 26 | SkyFunctionName FILE_STATE = SkyFunctionName.createNonHermetic("FILE_STATE"); |
| 27 | |
| 28 | @Override |
| 29 | default SkyFunctionName functionName() { |
| 30 | return FILE_STATE; |
| 31 | } |
| 32 | |
| 33 | @Override |
| 34 | RootedPath argument(); |
| 35 | } |