Class Term.UnaryI

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

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

      • UnaryI

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

      • evalB

        public boolean evalB​(EvalEnv env)
        Description copied from class: Term
        Evaluates this term to a boolean value.
        Specified by:
        evalB in class Term
        Parameters:
        env - the application dependant environment.
        Returns:
        a boolean 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