org.sc3d.apt.sss.v3
Class Calculator.Negation

java.lang.Object
  extended by org.sc3d.apt.sss.v3.Calculator.Expression
      extended by org.sc3d.apt.sss.v3.Calculator.Negation
Enclosing class:
Calculator

public static class Calculator.Negation
extends Calculator.Expression

An Expression whose outermost operator is a negation.


Field Summary
 Calculator.Expression e
          The Expression of which this is the Negation.
 
Constructor Summary
Calculator.Negation(Calculator.Expression e)
          Constructs the negation of 'e'.
 
Method Summary
 java.math.BigInteger evaluate()
          Returns the negation of 'e.evaluate()'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

e

public final Calculator.Expression e
The Expression of which this is the Negation.

Constructor Detail

Calculator.Negation

public Calculator.Negation(Calculator.Expression e)
Constructs the negation of 'e'.

Method Detail

evaluate

public java.math.BigInteger evaluate()
Returns the negation of 'e.evaluate()'.

Specified by:
evaluate in class Calculator.Expression