first commit
This commit is contained in:
27
hrmsEjb/org/nfunk/jep/function/PostfixMathCommand.java
Normal file
27
hrmsEjb/org/nfunk/jep/function/PostfixMathCommand.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package org.nfunk.jep.function;
|
||||
|
||||
import java.util.Stack;
|
||||
import org.nfunk.jep.ParseException;
|
||||
|
||||
public class PostfixMathCommand implements PostfixMathCommandI {
|
||||
protected int numberOfParameters = 0;
|
||||
|
||||
protected int curNumberOfParameters = 0;
|
||||
|
||||
protected void checkStack(Stack paramStack) throws ParseException {
|
||||
if (null == paramStack)
|
||||
throw new ParseException("Stack argument null");
|
||||
}
|
||||
|
||||
public int getNumberOfParameters() {
|
||||
return this.numberOfParameters;
|
||||
}
|
||||
|
||||
public void setCurNumberOfParameters(int paramInt) {
|
||||
this.curNumberOfParameters = paramInt;
|
||||
}
|
||||
|
||||
public void run(Stack paramStack) throws ParseException {
|
||||
throw new ParseException("run() method of PostfixMathCommand called");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user