| java.lang.Object gnu.regexp.IntPair gnu.regexp.UncheckedRE
UncheckedRE | final public class UncheckedRE extends RE (Code) | | UncheckedRE is a subclass of RE that allows programmers an easier means
of programmatically precompiling regular expressions. It is constructed
and used in exactly the same manner as an instance of the RE class; the
only difference is that its constructors do not throw REException.
Instead, if a syntax error is encountered during construction, a
RuntimeException will be thrown.
Note that this makes UncheckedRE dangerous if constructed with
dynamic data. Do not use UncheckedRE unless you are completely sure
that all input being passed to it contains valid, well-formed
regular expressions for the syntax specified.
author: Wes Biggs See Also: gnu.regexp.RE See Also: since: gnu.regexp 1.1.4 |
Constructor Summary | |
public | UncheckedRE(Object pattern) Constructs a regular expression pattern buffer without any compilation
flags set, and using the default syntax (RESyntax.RE_SYNTAX_PERL5).
Parameters: pattern - A regular expression pattern, in the form of a String,StringBuffer or char[]. | public | UncheckedRE(Object pattern, int cflags) Constructs a regular expression pattern buffer using the specified
compilation flags and the default syntax (RESyntax.RE_SYNTAX_PERL5).
Parameters: pattern - A regular expression pattern, in the form of a String,StringBuffer, or char[]. | public | UncheckedRE(Object pattern, int cflags, RESyntax syntax) Constructs a regular expression pattern buffer using the specified
compilation flags and regular expression syntax.
Parameters: pattern - A regular expression pattern, in the form of a String,StringBuffer, or char[]. |
UncheckedRE | public UncheckedRE(Object pattern)(Code) | | Constructs a regular expression pattern buffer without any compilation
flags set, and using the default syntax (RESyntax.RE_SYNTAX_PERL5).
Parameters: pattern - A regular expression pattern, in the form of a String,StringBuffer or char[]. Other input types will be converted tostrings using the toString() method. exception: RuntimeException - The input pattern could not be parsed. exception: NullPointerException - The pattern was null. |
UncheckedRE | public UncheckedRE(Object pattern, int cflags)(Code) | | Constructs a regular expression pattern buffer using the specified
compilation flags and the default syntax (RESyntax.RE_SYNTAX_PERL5).
Parameters: pattern - A regular expression pattern, in the form of a String,StringBuffer, or char[]. Other input types will be converted tostrings using the toString() method. Parameters: cflags - The logical OR of any combination of the compilation flags in the RE class. exception: RuntimeException - The input pattern could not be parsed. exception: NullPointerException - The pattern was null. |
UncheckedRE | public UncheckedRE(Object pattern, int cflags, RESyntax syntax)(Code) | | Constructs a regular expression pattern buffer using the specified
compilation flags and regular expression syntax.
Parameters: pattern - A regular expression pattern, in the form of a String,StringBuffer, or char[]. Other input types will be converted tostrings using the toString() method. Parameters: cflags - The logical OR of any combination of the compilation flags in the RE class. Parameters: syntax - The type of regular expression syntax to use. exception: RuntimeException - The input pattern could not be parsed. exception: NullPointerException - The pattern was null. |
|
|