vmm.functions
Class ComplexExpression

java.lang.Object
  extended by vmm.functions.ComplexFunction
      extended by vmm.functions.ComplexExpression

public class ComplexExpression
extends ComplexFunction

Represents a complex-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).

See Also:
Parser.parseComplexExpression(String)

Field Summary
 
Fields inherited from class vmm.functions.ComplexFunction
func
 
Method Summary
 Complex value()
          Evaluate this expression (using an EvalStack that is unique to the current Thread).
 void value(Complex answer)
          Evaluate this expression (using an EvalStack that is unique to the current Thread), and put the value in a non-null Complex object that is provided as a parameter to this method.
 Complex value(EvalStack stack)
          Evaluate this expression using a non-null stack provided as a parameter.
 void value(EvalStack stack, Complex answer)
          Evaluate this expression using a non-null stack provided as a parameter, and put the value in a non-null Complex object that is provided as a parameter,
 
Methods inherited from class vmm.functions.ComplexFunction
getArity, getName, setName, value, value, value, value, value, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

value

public Complex value()
Evaluate this expression (using an EvalStack that is unique to the current Thread).


value

public void value(Complex answer)
Evaluate this expression (using an EvalStack that is unique to the current Thread), and put the value in a non-null Complex object that is provided as a parameter to this method.


value

public Complex value(EvalStack stack)
Evaluate this expression using a non-null stack provided as a parameter.


value

public void value(EvalStack stack,
                  Complex answer)
Evaluate this expression using a non-null stack provided as a parameter, and put the value in a non-null Complex object that is provided as a parameter,