public class RegexPatternCompiler extends Object implements PatternCompiler
PatternCompiler
interface. It simply delegates to
Pattern.compile(String, int)
.Modifier and Type | Field and Description |
---|---|
private int |
flags |
Constructor and Description |
---|
RegexPatternCompiler()
The constructor.
|
RegexPatternCompiler(int flags)
The constructor.
|
public RegexPatternCompiler()
public RegexPatternCompiler(int flags)
flags
- are the compiler flags
.public Pattern compile(String pattern) throws IllegalArgumentException
compile
in interface PatternCompiler
pattern
- is the expression to be compiled as pattern.null
if explicitly documented by the underlying
implementation. E.g. if the given pattern
is just a plain string without wildcards.IllegalArgumentException
- if the given pattern
has illegal syntax for the underlying compiler.Pattern.compile(String)
Copyright © 2001–2016 mmm-Team. All rights reserved.