org.nfunk.jep.function
Class Add

java.lang.Object
  extended byorg.nfunk.jep.function.PostfixMathCommand
      extended byorg.nfunk.jep.function.Add
All Implemented Interfaces:
PostfixMathCommandI
Direct Known Subclasses:
MAdd

public class Add
extends PostfixMathCommand


Field Summary
 
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
 
Constructor Summary
Add()
           
 
Method Summary
 Complex add(Complex c1, Complex c2)
           
 Complex add(Complex c, java.lang.Number d)
           
 java.lang.Double add(java.lang.Number d1, java.lang.Number d2)
           
 java.lang.Object add(java.lang.Object param1, java.lang.Object param2)
           
 void run(java.util.Stack stack)
          Calculates the result of applying the "+" operator to the arguments from the stack and pushes it back on the stack.
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
checkStack, getNumberOfParameters, setCurNumberOfParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Add

public Add()
Method Detail

run

public void run(java.util.Stack stack)
         throws ParseException
Calculates the result of applying the "+" operator to the arguments from the stack and pushes it back on the stack.

Specified by:
run in interface PostfixMathCommandI
Overrides:
run in class PostfixMathCommand
Throws:
ParseException

add

public java.lang.Object add(java.lang.Object param1,
                            java.lang.Object param2)
                     throws ParseException
Throws:
ParseException

add

public java.lang.Double add(java.lang.Number d1,
                            java.lang.Number d2)

add

public Complex add(Complex c1,
                   Complex c2)

add

public Complex add(Complex c,
                   java.lang.Number d)


http://www.singularsys.com/jep Copyright © 2004 Singular Systems