@Deprecated public class JakartaRegexpCapabilities extends Object implements RegexCapabilities
RegexCapabilities.RegexMatcher.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.RegexCapabilities.RegexMatcher
Modifier and Type | Field and Description |
---|---|
static int |
FLAG_MATCH_CASEINDEPENDENT
Deprecated.
Flag to specify that matching should be case-independent (folded)
|
static int |
FLAG_MATCH_NORMAL
Deprecated.
Flag to specify normal, case-sensitive matching behaviour.
|
Constructor and Description |
---|
JakartaRegexpCapabilities()
Deprecated.
Constructs a RegexCapabilities with the default MATCH_NORMAL match style.
|
JakartaRegexpCapabilities(int flags)
Deprecated.
Constructs a RegexCapabilities with the provided match flags.
|
Modifier and Type | Method and Description |
---|---|
RegexCapabilities.RegexMatcher |
compile(String regex)
Deprecated.
Called by the constructor of
RegexTermsEnum allowing
implementations to cache a compiled version of the regular
expression pattern. |
boolean |
equals(Object obj)
Deprecated.
|
int |
hashCode()
Deprecated.
|
public static final int FLAG_MATCH_NORMAL
public static final int FLAG_MATCH_CASEINDEPENDENT
public JakartaRegexpCapabilities()
public JakartaRegexpCapabilities(int flags)
flags
- The matching stylepublic RegexCapabilities.RegexMatcher compile(String regex)
RegexCapabilities
RegexTermsEnum
allowing
implementations to cache a compiled version of the regular
expression pattern.compile
in interface RegexCapabilities
regex
- regular expression patternCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.