Class ExpressionToken


  • public class ExpressionToken
    extends Object
    This class represents the expression token generated by the parser while parsing the string expression. It contains the token string and index in the expression string. Example: 1+2+pow(3,4) 1, +, 2, +, pow, (, 3, ',', 4, ) are tokens
    • Constructor Detail

      • ExpressionToken

        public ExpressionToken​(String value,
                               int index)
        Constructs the ExpressionToken
        Parameters:
        value -
        index -
    • Method Detail

      • getIndex

        public int getIndex()
        Gets the value of index.
        Returns:
        Returns the index.
      • getValue

        public String getValue()
        Gets the value of value.
        Returns:
        Returns the value.