|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nfunk.jep.function.PostfixMathCommand org.lsmp.djep.groupJep.function.GAdd
public class GAdd
Add function for use with arbitary groups. Actual behaviour defined by the Group.
Field Summary |
---|
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand |
---|
curNumberOfParameters, numberOfParameters |
Constructor Summary | |
---|---|
GAdd(GroupI group)
|
Method Summary | |
---|---|
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 |
---|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GAdd(GroupI group)
Method Detail |
---|
public void run(java.util.Stack stack) throws ParseException
run
in interface PostfixMathCommandI
run
in class PostfixMathCommand
ParseException
public java.lang.Object add(java.lang.Object param1, java.lang.Object param2) throws ParseException
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |