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 booleanequals(Object obj)RGBColorevaluate(double x, double y)Returns the color represented by y.StringtoString()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:
evaluatein interfaceEvaluatableExpression- Specified by:
evaluatein 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:
toStringin classObject- See Also:
Object.toString()
-
-