public class GUMinus extends PostfixMathCommand
curNumberOfParameters, numberOfParameters| Modifier and Type | Method and Description |
|---|---|
void |
run(Stack stack)
Calculates the result of applying the "+" operator to the arguments from
the stack and pushes it back on the stack.
|
Object |
uminus(Object param1) |
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameterspublic GUMinus(GroupI group)
public void run(Stack stack) throws ParseException
run in interface PostfixMathCommandIrun in class PostfixMathCommandParseExceptionpublic Object uminus(Object param1) throws ParseException
ParseExceptionCopyright © 2018. All rights reserved.