Module hw06

Interface ITokenFactory

All Known Implementing Classes:
TokenFactory

public interface ITokenFactory
Abstract factory to produce tokens
  • Method Summary

    Modifier and Type
    Method
    Description
    makeToken​(String name, String lexeme)
    Creates an instance of an Token from the given name and lexeme values
  • Method Details

    • makeToken

      Token makeToken(String name, String lexeme)
      Creates an instance of an Token from the given name and lexeme values
      Parameters:
      name - the name of the token
      lexeme - the lexeme of the token
      Returns:
      the corresponding Token object