java.lang.Object
picasso.parser.language.ExpressionTreeNode
picasso.parser.language.expressions.Y
All Implemented Interfaces:
EvaluatableExpression

public class Y extends ExpressionTreeNode
Represents y in a Picasso expression
Author:
Robert C. Duvall, Sara Sprenkle
  • Constructor Details

    • Y

      public Y()
  • Method Details

    • evaluate

      public RGBColor evaluate(double x, double y)
      Returns the color represented by y. The value of x doesn't matter.
      Specified by:
      evaluate in interface EvaluatableExpression
      Specified by:
      evaluate in class ExpressionTreeNode
      Parameters:
      x - the value of x
      y - the value of y
      Returns:
      the result of evaluating the expression for the given values of x and y
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Returns "y", the representation of this variable in Picasso expressions
      Overrides:
      toString in class Object
      See Also: