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");
  }
}
