Package com.singularsys.jeptests.system

# Class BugsTest.NumberWithUnitTokenMatcher

java.lang.Object
com.singularsys.jep.configurableparser.matchers.RegExpTokenMatcher
com.singularsys.jeptests.system.BugsTest.NumberWithUnitTokenMatcher

All Implemented Interfaces:
  `TokenBuilder`, `TokenMatcher`, `Serializable`

Enclosing class:
  `BugsTest`

public static class BugsTest.NumberWithUnitTokenMatcher extends RegExpTokenMatcher
TokenMatcher used to match a number with a unit.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NumberWithUnitTokenMatcher()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Token`
  `buildToken(String s)`
  Builds a token following a successful match.
  `void`
  `init(Jep j)`
  Initialize the matcher when the Jep instance is known.

  ### Methods inherited from class com.singularsys.jep.configurableparser.matchers.RegExpTokenMatcher

  `match, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### NumberWithUnitTokenMatcher

    public NumberWithUnitTokenMatcher()

- ## Method Details

  - ### init

    public void init(Jep j)
    Description copied from interface: `TokenMatcher`
    Initialize the matcher when the Jep instance is known.
    Parameters:
      `j` - Jep instance

  - ### buildToken

    public Token buildToken(String s) throws ParseException
    Description copied from class: `RegExpTokenMatcher`
    Builds a token following a successful match. Note new objects should be created each time as error reporting information is later attached to tokens.
    Specified by:
      `buildToken` in interface `TokenBuilder`
    Specified by:
      `buildToken` in class `RegExpTokenMatcher`
    Parameters:
      `s` - String representing the completed matched token
    Returns:
      the appropriate type of token.
    Throws:
      `ParseException`