Annotation Interface Regex


@Target({METHOD,FIELD,PARAMETER,LOCAL_VARIABLE,ANNOTATION_TYPE}) @Language("RegExp") public @interface Regex
This annotation indicates that a String parameter, field, or method return value should be a valid regular expression.

The annotation can be used to specify the syntax and flags of the regular expression, as well as an example of a matching and a non-matching input.

See Also: