org.lsmp.djep.groupJep.function
Class GAdd
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
org.lsmp.djep.groupJep.function.GAdd
- All Implemented Interfaces:
- PostfixMathCommandI
public class GAdd
- extends PostfixMathCommand
Add function for use with arbitary groups.
Actual behaviour defined by the Group.
- Author:
- Rich Morris
Created on 05-Mar-2004
|
Method Summary |
Object |
add(Object param1,
Object param2)
|
void |
run(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GAdd
public GAdd(GroupI group)
run
public void run(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 Object add(Object param1,
Object param2)
throws ParseException
- Throws:
ParseException
Copyright © 2014. All rights reserved.