Package com.singularsys.jeptests.system
Class NullWrapTest.MyPfmc
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jeptests.system.NullWrapTest.MyPfmc
- All Implemented Interfaces:
PostfixMathCommandI,Serializable
- Enclosing class:
NullWrapTest
A simple multi arg function.
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, description, name, NaN, numberOfParameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckNumberOfParameters(int n) Checks the number of parameters of the function.voidThrows an exception because this method should never be called under normal circumstances.Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, asType, getDescription, getDescription, getDescriptionWithType, getName, getNumberOfParameters, setCurNumberOfParameters, setDescription, setName, toString, toString
-
Constructor Details
-
MyPfmc
public MyPfmc()
-
-
Method Details
-
checkNumberOfParameters
public boolean checkNumberOfParameters(int n) Description copied from class:PostfixMathCommandChecks the number of parameters of the function. Functions which set numberOfParameter=-1 should overload this method- Specified by:
checkNumberOfParametersin interfacePostfixMathCommandI- Overrides:
checkNumberOfParametersin classPostfixMathCommand- Parameters:
n- number of parameters function will be called with.- Returns:
- false if an illegal number of parameters is supplied, true otherwise.
-
run
Description copied from class:PostfixMathCommandThrows 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:
runin interfacePostfixMathCommandI- Overrides:
runin classPostfixMathCommand- Parameters:
s- arguments for function- Throws:
EvaluationException- if function cannot be evaluated
-