|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvmm.functions.Function
vmm.functions.Expression
public class Expression
Represents a real-valued expression. An expression can only be produced by a
Parser. An expression is implemented as a Function that has no arguments
(and no name).
Parser.parseExpression(String)| Field Summary |
|---|
| Fields inherited from class vmm.functions.Function |
|---|
func |
| Method Summary | |
|---|---|
double |
value()
Evaluate this expression (using an EvalStack that is unique to the current Thread). |
double |
value(EvalStack stack)
Evaluate this expression using a stack provided as a parameter. |
| Methods inherited from class vmm.functions.Function |
|---|
getArity, getName, setName, value, value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public double value()
public double value(EvalStack stack)
stack - a non-null stack to be used for evaluating the expression.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||