Class FunctionSafeJep.UnknownFunction

java.lang.Object
net.sf.basedb.util.jep.FunctionSafeJep.UnknownFunction
All Implemented Interfaces:
Serializable, org.nfunk.jep.function.PostfixMathCommandI
Enclosing class:
FunctionSafeJep

static class FunctionSafeJep.UnknownFunction extends Object implements org.nfunk.jep.function.PostfixMathCommandI, Serializable
Represents an unknown function that appears in an expression. The error is usually catched at parse time, otherwise it will be catched at evaluation time by this class.
  • Field Details

  • Constructor Details

    • UnknownFunction

      UnknownFunction(String name)
  • Method Details

    • checkNumberOfParameters

      public boolean checkNumberOfParameters(int numParameters)
      Specified by:
      checkNumberOfParameters in interface org.nfunk.jep.function.PostfixMathCommandI
    • getNumberOfParameters

      public int getNumberOfParameters()
      Specified by:
      getNumberOfParameters in interface org.nfunk.jep.function.PostfixMathCommandI
    • run

      public void run(Stack paramStack) throws ParseException
      Specified by:
      run in interface org.nfunk.jep.function.PostfixMathCommandI
      Throws:
      ParseException
    • setCurNumberOfParameters

      public void setCurNumberOfParameters(int numParameters)
      Specified by:
      setCurNumberOfParameters in interface org.nfunk.jep.function.PostfixMathCommandI