Class OperatorToken

  • All Implemented Interfaces:
    java.io.Serializable

    public final class OperatorToken
    extends Token
    Represents an Operator
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OperatorToken​(Operator op)
      Create a new instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Operator getOperator()
      Get the operator for that token
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class net.objecthunter.exp4j.tokenizer.Token

        getType
    • Constructor Detail

      • OperatorToken

        public OperatorToken​(Operator op)
        Create a new instance
        Parameters:
        op - the operator
    • Method Detail

      • getOperator

        public Operator getOperator()
        Get the operator for that token
        Returns:
        the operator
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object