public class UMinus extends PostfixMathCommand
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
UMinus() |
| Modifier and Type | Method and Description |
|---|---|
void |
run(Stack inStack)
Throws an exception because this method should never be called under
normal circumstances.
|
Object |
umin(Object param) |
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameterspublic void run(Stack inStack) throws ParseException
PostfixMathCommandrun in interface PostfixMathCommandIrun in class PostfixMathCommandParseExceptionpublic Object umin(Object param) throws ParseException
ParseExceptionCopyright © 2018. All rights reserved.