Package com.singularsys.jeptests.system
Class BugsTest.StackMessingFunc
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jeptests.system.BugsTest.StackMessingFunc
- All Implemented Interfaces:
PostfixMathCommandI
,Serializable
- Enclosing class:
BugsTest
A function which can incorrectly read the stack.
Last argument controls how many items to pop off the stack
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
Constructor Summary
-
Method Summary
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
-
Constructor Details
-
StackMessingFunc
public StackMessingFunc()
-
-
Method Details
-
run
Description copied from class:PostfixMathCommand
Throws an exception because this method should never be called under normal circumstances. Each function should use its ownrun()
method for evaluating the function. This includes popping off the parameters from the stack, and pushing the result back on the stack.- Specified by:
run
in interfacePostfixMathCommandI
- Overrides:
run
in classPostfixMathCommand
- Parameters:
stack
- arguments for function
-