Annotation Type PolyRegex
-
@Documented @Retention(RUNTIME) @Target({TYPE_USE,TYPE_PARAMETER}) @PolymorphicQualifier(UnknownRegex.class) public @interface PolyRegexA polymorphic qualifier for the Regex type system.Any method written using
PolyRegexconceptually has multiple versions: one in which all instances ofPolyRegexin the method signature have been replaced by one of the following qualifiers:Regex, which takes an integer argument to represent different capturing groups;PartialRegex, which takes a string argument to represent different partial regexes;UnknownRegex; andRegexBottom.- See the Checker Framework Manual:
- Regex Checker, Qualifier polymorphism