public interface PostfixMathCommandI
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
checkNumberOfParameters(int n)
Checks the number of parameters of the function.
|
java.lang.String |
getName()
The name of the function used in error messages
|
int |
getNumberOfParameters()
Returns the number of required parameters, or -1 if any number of
parameters is allowed.
|
void |
run(java.util.Stack<java.lang.Object> stack)
Run the function on the stack.
|
void |
setCurNumberOfParameters(int n)
Sets the number of current number of parameters used in the next call
of run().
|
void |
setName(java.lang.String name)
Sets the name of the function used for error messages
|
void run(java.util.Stack<java.lang.Object> stack) throws EvaluationException
stack
- arguments for functionEvaluationException
- if function cannot be evaluatedint getNumberOfParameters()
void setCurNumberOfParameters(int n)
n
- number of parameter for next call of functionboolean checkNumberOfParameters(int n)
n
- number of parameters function will be called with.java.lang.String getName()
void setName(java.lang.String name)
name
- the function nameCopyright © 2018 Singular Systems http://www.singularsys.com/jep