public class Product extends Instruction
The value returned by evaluating a PRODUCT instruction is the instruction itself, followed by the two expressions
| Modifier and Type | Field and Description | 
|---|---|
private GrammarElement | 
expressionOne  | 
private GrammarElement | 
expressionTwo  | 
private java.lang.Double | 
total  | 
gelementsToValue| Constructor and Description | 
|---|
Product(GrammarElement e,
       GrammarElement f)
Constructs a PRODUCT instruction that can be executed. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object | 
evaluate(Context c)
Evaluate this instruction in a Context. 
 | 
java.lang.String | 
toString()  | 
private GrammarElement expressionOne
private GrammarElement expressionTwo
private java.lang.Double total
public Product(GrammarElement e, GrammarElement f)
e - the first numberf - the second numberpublic java.lang.Object evaluate(Context c)
evaluate in class Instructionc - the Context for the evaluationpublic java.lang.String toString()
toString in class java.lang.Object