public final class PatternFactory extends PatternFactory implements Serializable
java.util.regex engine.| Modifier and Type | Field and Description |
|---|---|
static PatternFactory |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Pattern |
compile(String regex,
int flags)
Compiles the given regex into a
Pattern with the given flags. |
String |
getId() |
int |
getSupportedFlags() |
boolean |
matches(String regex,
CharSequence input) |
compile, get, get, quote, quoteReplacementpublic static final PatternFactory INSTANCE
public String getId()
getId in class PatternFactorypublic int getSupportedFlags()
getSupportedFlags in class PatternFactorythis engine.public Pattern compile(String regex, int flags) throws PatternSyntaxException
PatternFactoryPattern with the given flags.compile in class PatternFactoryflags - The or'ed compilation flag constants declared by PatternPatternSyntaxExceptionPattern.compile(String, int),
Pattern.compile(String),
Pattern.CANON_EQ,
Pattern.CASE_INSENSITIVE,
Pattern.COMMENTS,
Pattern.DOTALL,
Pattern.LITERAL,
Pattern.MULTILINE,
Pattern.UNICODE_CASE,
Pattern.UNICODE_CHARACTER_CLASS,
Pattern.UNIX_LINESpublic boolean matches(String regex, CharSequence input)
matches in class PatternFactoryPattern.matches(String, CharSequence)Copyright © 2022 Arno Unkrig. All rights reserved.