Class Y
- 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
-
-
Field Summary
-
Fields inherited from class picasso.parser.language.ExpressionTreeNode
gelementsToValue
-
-
Constructor Summary
Constructors Constructor Description Y()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
RGBColor
evaluate(double x, double y)
Returns the color represented by y.String
toString()
Returns "y", the representation of this variable in Picasso expressions
-
-
-
Method Detail
-
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 interfaceEvaluatableExpression
- Specified by:
evaluate
in classExpressionTreeNode
- Parameters:
x
- the value of xy
- the value of y- Returns:
- the result of evaluating the expression for the given values of x and y
-
toString
public String toString()
Returns "y", the representation of this variable in Picasso expressions- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-