org.cheffo.jeplite.function
Class PostfixMathCommand

java.lang.Object
  |
  +--org.cheffo.jeplite.function.PostfixMathCommand
Direct Known Subclasses:
PostfixMathCommand.Comparative, PostfixMathCommand.Divide, PostfixMathCommand.Logical, PostfixMathCommand.Modulus, PostfixMathCommand.Multiply, PostfixMathCommand.Not, PostfixMathCommand.Power, PostfixMathCommand.Subtract

public abstract class PostfixMathCommand
extends java.lang.Object


Nested Class Summary
static class PostfixMathCommand.Comparative
           
static class PostfixMathCommand.Divide
           
static class PostfixMathCommand.Logical
           
static class PostfixMathCommand.Modulus
           
static class PostfixMathCommand.Multiply
           
static class PostfixMathCommand.Not
           
static class PostfixMathCommand.Power
           
static class PostfixMathCommand.Subtract
           
 
Field Summary
static PostfixMathCommand ADD
           
static PostfixMathCommand AND
           
static PostfixMathCommand DIVIDE
           
static PostfixMathCommand MULTIPLY
           
protected  int numberOfParameters
           
static PostfixMathCommand OR
           
static PostfixMathCommand UMINUS
           
 
Constructor Summary
PostfixMathCommand()
           
 
Method Summary
static void fillFunctionTable(java.util.HashMap funTab)
           
 int getNumberOfParameters()
           
 double operation(double[] params)
           
 void run(DoubleStack inStack)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD

public static final PostfixMathCommand ADD

DIVIDE

public static final PostfixMathCommand DIVIDE

MULTIPLY

public static final PostfixMathCommand MULTIPLY

UMINUS

public static final PostfixMathCommand UMINUS

AND

public static final PostfixMathCommand AND

OR

public static final PostfixMathCommand OR

numberOfParameters

protected int numberOfParameters
Constructor Detail

PostfixMathCommand

public PostfixMathCommand()
Method Detail

getNumberOfParameters

public final int getNumberOfParameters()

operation

public double operation(double[] params)
                 throws ParseException
ParseException

run

public void run(DoubleStack inStack)
         throws ParseException
ParseException

fillFunctionTable

public static void fillFunctionTable(java.util.HashMap funTab)