com.singularsys.jep

## Interface Evaluator

- All Superinterfaces:
    JepComponent, java.io.Serializable
  All Known Implementing Classes:
    FastEvaluator, PostfixEvaluator, RealEvaluator, StackCheckingFastEvaluator, StandardEvaluator, ThreadSafeEvaluator

      public interface Evaluator
      extends JepComponent

  Defines a method which can be used to evaluate a part of a node-tree. It is passed to classes which use CallbackEvaluatorI which need greater control over how they are evaluated.
  Author:
    Rich Morris Created on 22-Apr-2005
  See Also:
    `CallbackEvaluationI`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Object` | `eval(Node node)` Evaluates a sub expression.
    `java.lang.Object` | `evaluate(Node node)` Main entry point, evaluates a node and returns and object with the value of the node.

    - ### Methods inherited from interface com.singularsys.jep.JepComponent

      `getLightWeightInstance, init`

- - ### Method Detail

    - #### evaluate

          java.lang.Object evaluate(Node node)
                             throws EvaluationException

      Main entry point, evaluates a node and returns and object with the value of the node.
      Parameters:
        `node` - node to evaluate
      Returns:
        value after evaluation
      Throws:
        `EvaluationException` - if errors occur during evaluation;

    - #### eval

          java.lang.Object eval(Node node)
                         throws EvaluationException

      Evaluates a sub expression. This method can be called by PostfixMathCommands which implement `CallbackEvaluationI`
      Parameters:
        `node` - node to evaluate
      Returns:
        The value after evaluating the sub expression.
      Throws:
        `EvaluationException` - if errors occur during evaluation;

Copyright © 2018 Singular Systems http://www.singularsys.com/jep