|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectslogo.language.GrammarElement
slogo.instruction.Instruction
slogo.instruction.arithmetic.NumericInstruction
slogo.instruction.arithmetic.ArithmeticInstruction
slogo.instruction.arithmetic.Subtraction
public class Subtraction
Represents a - b, the subtraction of two expressions
Field Summary |
---|
Fields inherited from class slogo.instruction.arithmetic.ArithmeticInstruction |
---|
myLeft, myRight, mySymbol |
Fields inherited from class slogo.language.GrammarElement |
---|
gelementsToValue |
Constructor Summary | |
---|---|
Subtraction(GrammarElement firstElem,
GrammarElement secondElem)
|
Method Summary | |
---|---|
java.lang.Double |
evaluate(Context c)
Evaluate this language construct in some context. |
Methods inherited from class slogo.instruction.arithmetic.ArithmeticInstruction |
---|
leftValue, rightValue, toString |
Methods inherited from class slogo.instruction.Instruction |
---|
evaluateNumericExpression |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Subtraction(GrammarElement firstElem, GrammarElement secondElem)
Method Detail |
---|
public java.lang.Double evaluate(Context c)
GrammarElement
evaluate
in class NumericInstruction
c
- context in which the evaluation takes place
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |