picasso.parser.language.expressions
Class Negate

java.lang.Object
  extended by picasso.parser.language.ExpressionTreeNode
      extended by picasso.parser.language.expressions.UnaryFunction
          extended by picasso.parser.language.expressions.Negate
All Implemented Interfaces:
EvaluatableExpression

public class Negate
extends UnaryFunction

Represents the negation function

Author:
Stuart Vassey

Constructor Summary
Negate(ExpressionTreeNode param)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 RGBColor evaluate(double x, double y)
          Evaluate this expression, given x and y
 
Methods inherited from class picasso.parser.language.expressions.UnaryFunction
toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Negate

public Negate(ExpressionTreeNode param)
Method Detail

evaluate

public RGBColor evaluate(double x,
                         double y)
Description copied from class: ExpressionTreeNode
Evaluate this expression, given x and y

Specified by:
evaluate in interface EvaluatableExpression
Specified by:
evaluate in class ExpressionTreeNode
Returns:
the result of evaluating the expression

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object