public class GMultiply extends PostfixMathCommand
curNumberOfParameters, numberOfParameters| Modifier and Type | Method and Description |
|---|---|
Object |
mul(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.
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameterspublic GMultiply(GroupI group)
public void run(Stack stack) throws ParseException
run in interface PostfixMathCommandIrun in class PostfixMathCommandParseExceptionpublic Object mul(Object param1, Object param2) throws ParseException
ParseExceptionCopyright © 2018. All rights reserved.