Class Matchers

java.lang.Object
com.globalmentor.util.regex.Matchers

@Deprecated public class Matchers extends Object
Deprecated.
Will be moved to RegularExpressions.
Utilities for regular expression matchers.
Author:
Garret Wilson
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int[]
    Deprecated.
    Returns an array of integer versions from the available groups of the given matcher.
    static int[]
    getIntGroups(Matcher matcher, int beginGroupNumber)
    Deprecated.
    Returns an array of integer versions from the available groups of the given matcher, starting at the requested group number.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Matchers

      public Matchers()
      Deprecated.
  • Method Details

    • getIntGroups

      public static int[] getIntGroups(Matcher matcher)
      Deprecated.
      Returns an array of integer versions from the available groups of the given matcher. null groups will be counted as zero. That is, if a matcher contains groups "2", "3", and "null", the array {2, 3, 0} will be returned.
      Parameters:
      matcher - The matcher for which an integer array of group values should be returned.
      Returns:
      An array of integers representing the integer values of the matcher groups.
      Throws:
      IllegalArgumentException - if one of the matcher's groups is not null and cannot be parsed as an integer.
    • getIntGroups

      public static int[] getIntGroups(Matcher matcher, int beginGroupNumber)
      Deprecated.
      Returns an array of integer versions from the available groups of the given matcher, starting at the requested group number. null groups will be counted as zero. That is, if a matcher contains groups "2", "3", and "null", the array {2, 3, 0} will be returned.
      Parameters:
      matcher - The matcher for which an integer array of group values should be returned.
      beginGroupNumber - The one-based group number at which to begin retrieving values.
      Returns:
      An array of integers representing the integer values of the matcher groups.
      Throws:
      IllegalArgumentException - if one of the matcher's groups is not null and cannot be parsed as an integer.