Class JakartaRegexpCapabilities

  • All Implemented Interfaces:
    RegexCapabilities

    public class JakartaRegexpCapabilities
    extends Object
    implements RegexCapabilities
    Implementation tying Jakarta Regexp to RegexQuery. Jakarta Regepx internally supports a prefix() implementation which can offer performance gains under certain circumstances. Yet, the implementation appears to be rather shaky as it doesn't always provide a prefix even if one would exist.
    • Field Detail

      • FLAG_MATCH_NORMAL

        public static final int FLAG_MATCH_NORMAL
        Flag to specify normal, case-sensitive matching behaviour. This is the default.
        See Also:
        Constant Field Values
      • FLAG_MATCH_CASEINDEPENDENT

        public static final int FLAG_MATCH_CASEINDEPENDENT
        Flag to specify that matching should be case-independent (folded)
        See Also:
        Constant Field Values
    • Constructor Detail

      • JakartaRegexpCapabilities

        public JakartaRegexpCapabilities()
        Constructs a RegexCapabilities with the default MATCH_NORMAL match style.
      • JakartaRegexpCapabilities

        public JakartaRegexpCapabilities​(int flags)
        Constructs a RegexCapabilities with the provided match flags. Multiple flags should be ORed together.
        Parameters:
        flags - The matching style