Class Subtraction
- java.lang.Object
-
- picasso.parser.language.ExpressionTreeNode
-
- picasso.parser.language.expressions.BinaryFunction
-
- picasso.parser.language.expressions.Subtraction
-
- All Implemented Interfaces:
EvaluatableExpression
public class Subtraction extends BinaryFunction
Represents the minus function in the Picasso language.
-
-
Field Summary
-
Fields inherited from class picasso.parser.language.ExpressionTreeNode
gelementsToValue
-
-
Constructor Summary
Constructors Constructor Description Subtraction(ExpressionTreeNode param1, ExpressionTreeNode param2)
Create a subtraction expression tree that takes as a parameter two expressions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
operate(double param1, double param2)
-
Methods inherited from class picasso.parser.language.expressions.BinaryFunction
equals, evaluate, toString
-
-
-
-
Constructor Detail
-
Subtraction
public Subtraction(ExpressionTreeNode param1, ExpressionTreeNode param2)
Create a subtraction expression tree that takes as a parameter two expressions
-
-
Method Detail
-
operate
protected double operate(double param1, double param2)
- Specified by:
operate
in classBinaryFunction
-
-