|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PostfixMathCommandI
All function classes must implement this interface to ensure that the run() method is implemented.
Method Summary | |
---|---|
boolean |
checkNumberOfParameters(int n)
Checks the number of parameters of the function. |
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> aStack)
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(). |
Method Detail |
---|
void run(java.util.Stack<java.lang.Object> aStack) throws EvaluationException
EvaluationException
int getNumberOfParameters()
void setCurNumberOfParameters(int n)
boolean checkNumberOfParameters(int n)
n
- number of parameters function will be called with.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |