Annotation Type Regex


@Target(PARAMETER) @Retention(RUNTIME) public @interface Regex
Annotation version of adding RegexPreprocessor as a preprocessor using CommandComponent.addPreprocessor(ComponentPreprocessor)
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Regular expression pattern
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Key for the caption used to generate the failure exception.