The constructor takes a pattern and the
TokenizerProperty object
associated with this instance of PatternMatcher. The global
flags are passed to control the behaviour for attributes that are not
specified in the property itself (e.g. case-sensitivity).
Parameters: prop - the TokenizerProperty associated with this object Parameters: globalFlags - flags that are to be used if not set explicitely in the property throws: NullPointerException - if the given parameter is null
This method checks if the start of a character range given through the
DataProvider matches a pattern. See
PatternHandler.matches for details.
Parameters: dataProvider - the source to get the data from Parameters: freePatternOnly - if true only unbounded pattern should bechecked (pattern not enclosed in whitespaces, separators etc.) a PatternHandler.Result object or null if nomatch was found throws: TokenizerException - generic exception throws: NullPointerException - if no DataProvider is given
Setting the
TokenizerProperty for this PatternMatcher.
This method will recompile the regular expression pattern.
Parameters: prop - the TokenizerProperty associated with this object throws: NullPointerException - if the given parameter is null