Class ExpressionTokenizer

java.lang.Object
ch.andre601.expressionparser.expressions.ExpressionTokenizer

public class ExpressionTokenizer extends Object
The ExpressionTokenizer is responsible for turning a String into a collection of Token instances using a provided list of TokenReader instances.
The order of the TokenReaders in the list is based on their priority.
  • Constructor Details

    • ExpressionTokenizer

      public ExpressionTokenizer(Iterable<TokenReader> tokenReaders)
      Constructor for creating a new ExpressionTokenizer.
      Parameters:
      tokenReaders - Iterable of TokenReaders to use.
  • Method Details