Class FunctionType4.Operation

  • Enclosing class:
    FunctionType4

    abstract class FunctionType4.Operation
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String operatorName  
    • Constructor Summary

      Constructors 
      Constructor Description
      Operation​(java.lang.String operatorName)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      return true if our operator is the same as the supplied one.
      (package private) abstract void eval()
      evaluate the function, popping the stack as needed and pushing results.
      java.lang.String getOperatorName()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • operatorName

        private java.lang.String operatorName
    • Constructor Detail

      • Operation

        public Operation​(java.lang.String operatorName)
    • Method Detail

      • getOperatorName

        public java.lang.String getOperatorName()
      • eval

        abstract void eval()
        evaluate the function, popping the stack as needed and pushing results.
      • equals

        public boolean equals​(java.lang.Object obj)
        return true if our operator is the same as the supplied one.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
        Returns: