|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectslogo.language.GrammarElement
slogo.expression.Expression
slogo.expression.UnaryExpression
slogo.expression.Negation
public class Negation
Represents unary minus, e.g., -expression
| Field Summary |
|---|
| Fields inherited from class slogo.expression.UnaryExpression |
|---|
myExpression |
| Fields inherited from class slogo.language.GrammarElement |
|---|
gelementsToValue |
| Constructor Summary | |
|---|---|
Negation(Expression e)
|
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
|
double |
value(Context c)
|
| Methods inherited from class slogo.expression.Expression |
|---|
evaluate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Negation(Expression e)
| Method Detail |
|---|
public double value(Context c)
value in class UnaryExpressionpublic java.lang.String toString()
toString in class UnaryExpression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||