org.lsmp.djep.groupJep.function
Class GUMinus

java.lang.Object
  extended by org.nfunk.jep.function.PostfixMathCommand
      extended by org.lsmp.djep.groupJep.function.GUMinus
All Implemented Interfaces:
PostfixMathCommandI

public class GUMinus
extends PostfixMathCommand

Unitary division for a group.

Author:
Rich Morris Created on 05-Mar-2004

Field Summary
 
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
 
Constructor Summary
GUMinus(GroupI group)
           
 
Method Summary
 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.
 java.lang.Object uminus(java.lang.Object param1)
           
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUMinus

public GUMinus(GroupI group)
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

uminus

public java.lang.Object uminus(java.lang.Object param1)
                        throws ParseException
Throws:
ParseException


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