Class Tokenizer


  • public class Tokenizer
    extends java.lang.Object
    The tokenizer is responsible to parse a string and return a list of tokens. The order of tokens will follow the infix expression notation, skipping any blank characters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Token> parse()
      Parse the given expression and return a list of tokens, representing the expression.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • parse

        public java.util.List<Token> parse()
                                    throws ParseException
        Parse the given expression and return a list of tokens, representing the expression.
        Returns:
        A list of expression tokens.
        Throws:
        ParseException - When the expression can't be parsed.