Class Term.UnaryB

  • Direct Known Subclasses:
    Term.NotB
    Enclosing class:
    Term

    public abstract static class Term.UnaryB
    extends Term.Unary
    An abstract unary (= 1 operand) operation with return type of boolean.
    • Constructor Detail

      • UnaryB

        protected UnaryB​(String name,
                         Term arg)
    • Method Detail

      • evalI

        public int evalI​(EvalEnv env)
        Description copied from class: Term
        Evaluates this term to an int value.
        Specified by:
        evalI in class Term
        Parameters:
        env - the application dependant environment.
        Returns:
        an int value
      • evalD

        public double evalD​(EvalEnv env)
        Description copied from class: Term
        Evaluates this term to a double value.
        Specified by:
        evalD in class Term
        Parameters:
        env - the application dependant environment.
        Returns:
        a double value