Søren Gjesse | 591455a | 2025-02-06 16:46:39 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2025 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | // *********************************************************************************** |
| 18 | // MAINTAINED AND TESTED IN THE R8 REPO. PLEASE MAKE CHANGES THERE AND REPLICATE. |
| 19 | // *********************************************************************************** |
| 20 | |
Søren Gjesse | 43a1678 | 2025-02-24 09:19:24 +0100 | [diff] [blame] | 21 | package androidx.annotation.keep |
Søren Gjesse | 591455a | 2025-02-06 16:46:39 +0100 | [diff] [blame] | 22 | |
| 23 | /** |
| 24 | * Valid matches on member access flags and their negations. |
| 25 | * |
| 26 | * <p>The negated elements make it easier to express the inverse as we cannot use a "not/negation" |
| 27 | * operation syntactically. |
| 28 | */ |
Søren Gjesse | f1d79d5 | 2025-02-24 12:17:45 +0100 | [diff] [blame] | 29 | public enum class MemberAccessFlags { |
Søren Gjesse | 591455a | 2025-02-06 16:46:39 +0100 | [diff] [blame] | 30 | PUBLIC, |
| 31 | NON_PUBLIC, |
| 32 | PROTECTED, |
| 33 | NON_PROTECTED, |
| 34 | PACKAGE_PRIVATE, |
| 35 | NON_PACKAGE_PRIVATE, |
| 36 | PRIVATE, |
| 37 | NON_PRIVATE, |
| 38 | STATIC, |
| 39 | NON_STATIC, |
| 40 | FINAL, |
| 41 | NON_FINAL, |
| 42 | SYNTHETIC, |
Søren Gjesse | 43a1678 | 2025-02-24 09:19:24 +0100 | [diff] [blame] | 43 | NON_SYNTHETIC, |
Søren Gjesse | 591455a | 2025-02-06 16:46:39 +0100 | [diff] [blame] | 44 | } |