We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
static
final
1 parent acf915d commit 50137c0Copy full SHA for 50137c0
check_api/src/main/java/com/google/errorprone/matchers/Matchers.java
@@ -994,6 +994,11 @@ public static Matcher<ClassTree> isEnum() {
994
return (classTree, state) -> getSymbol(classTree).getKind() == ElementKind.ENUM;
995
}
996
997
+ /** Matches if a {@link ClassTree} is a {@code record} declaration. */
998
+ public static Matcher<ClassTree> isRecord() {
999
+ return (classTree, state) -> getSymbol(classTree).getKind() == ElementKind.RECORD;
1000
+ }
1001
+
1002
/**
1003
* Matches an class based on whether it is nested in another class or method.
1004
*
0 commit comments