Class Term.Neg

  • Enclosing class:
    Term

    public static final class Term.Neg
    extends Term.UnaryN
    The numerical NEG operation:
    - d-term
    • Constructor Detail

      • Neg

        public Neg​(Term arg)
      • Neg

        public Neg​(int type,
                   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
      • accept

        public <T> T accept​(TermVisitor<T> visitor)
        Description copied from class: Term
        Visitor support.
        Specified by:
        accept in class Term
        Parameters:
        visitor - A visitor.