Class HexNumberTokenMatcher

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Token buildToken​(java.lang.String s)
      Builds a token following a successful match.
      void init​(Jep jep)
      Initialize the matcher when the Jep instance is known.
      • Methods inherited from class java.lang.Object

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

      • HexNumberTokenMatcher

        public HexNumberTokenMatcher()
    • Method Detail

      • buildToken

        public Token buildToken​(java.lang.String s)
        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.
      • init

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