Interface PostfixMathCommandI


@PublicApi @Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public interface PostfixMathCommandI
Deprecated, for removal: This API element is subject to removal in a future version.
This interface will be removed, use CustomFunction instead.
Legacy interface for function classes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Double
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final Double
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final Double
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final Object
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    check(Stack<Object> aStack)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Checks the stack.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the function itself or its clone.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the number of required parameters, or -1 if any number of parameters is allowed.
    void
    run(Stack<Object> aStack)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Run the function on the stack.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the number of current number of parameters used in the next call of run().
  • Field Details

    • TRUE

      static final Double TRUE
      Deprecated, for removal: This API element is subject to removal in a future version.
    • FALSE

      static final Double FALSE
      Deprecated, for removal: This API element is subject to removal in a future version.
    • NAN

      static final Double NAN
      Deprecated, for removal: This API element is subject to removal in a future version.
    • UNDECIDED

      static final Object UNDECIDED
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • run

      void run(Stack<Object> aStack) throws chemaxon.nfunk.jep.ParseException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Run the function on the stack. Pops the arguments from the stack, and pushes the result on the top of the stack.
      Throws:
      chemaxon.nfunk.jep.ParseException
    • check

      boolean check(Stack<Object> aStack)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks the stack. If OK (can be processed), returns true, otherwise pops parameters and pushes UNDECIDED result.
    • getNumberOfParameters

      int getNumberOfParameters()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the number of required parameters, or -1 if any number of parameters is allowed.
    • setCurNumberOfParameters

      void setCurNumberOfParameters(int n)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the number of current number of parameters used in the next call of run(). This method is only called when the reqNumberOfParameters is -1.
    • getFunction

      PostfixMathCommandI getFunction()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the function itself or its clone.