Package com.singularsys.jeptests.system

# Class ModifiedParserTest.BadFun

java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.NaryFunction
com.singularsys.jeptests.system.ModifiedParserTest.BadFun

All Implemented Interfaces:
  `CallbackEvaluationI`, `PostfixMathCommandI`, `Serializable`

Enclosing class:
  `ModifiedParserTest`

public static class ModifiedParserTest.BadFun extends NaryFunction implements CallbackEvaluationI

See Also:
  - Serialized Form

- ## Field Summary

  ### Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand

  `curNumberOfParameters, description, name, NaN, numberOfParameters`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BadFun()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `eval(Object[] args)`
  Evaluate the function
  `Object`
  `evaluate(Node node, Evaluator pv)`
  Performs some special evaluation on the node.

  ### Methods inherited from class com.singularsys.jep.functions.NaryFunction

  `run`

  ### Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand

  `asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, asType, checkNumberOfParameters, getDescription, getDescription, getDescriptionWithType, getName, getNumberOfParameters, setCurNumberOfParameters, setDescription, setName, toString, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### BadFun

    public BadFun()

- ## Method Details

  - ### evaluate

    public Object evaluate(Node node, Evaluator pv) throws EvaluationException
    Description copied from interface: `CallbackEvaluationI`
    Performs some special evaluation on the node. This method has the responsibility for evaluating the children of the node, and it should generally call

         pv.eval(node.jjtGetChild(i))

    for each child. The SymbolTable is not passed as an argument. This is because it is better practice to get and set variable values by using node.getVar().setValue() rather that through the SymbolTable with requires a hashtable lookup.
    Specified by:
      `evaluate` in interface `CallbackEvaluationI`
    Parameters:
      `node` - The current node
      `pv` - The visitor, can be used evaluate the children
    Returns:
      the value after evaluation. This value will be passed to other functions higher up the node tree. The value can be any type including Double or Vector<Object>
    Throws:
      `EvaluationException` - if the calculation cannot be performed
    See Also:
      - `Evaluator`

  - ### eval

    public Object eval(Object[] args) throws EvaluationException
    Description copied from class: `NaryFunction`
    Evaluate the function
    Specified by:
      `eval` in class `NaryFunction`
    Parameters:
      `args` - arguments to the function
    Returns:
      value returned by the function
    Throws:
      `EvaluationException` - if the calculation cannot be performed