Class EvalDemo

java.lang.Object
org.djutils.eval.EvalDemo

public class EvalDemo extends Object
EvalDemo.java.

Copyright (c) 2023-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.

Author:
Alexander Verbraeck
  • Constructor Details

    • EvalDemo

      public EvalDemo()
  • Method Details

    • main

      public static void main(String... args)
      Demonstrate the eval package.
      Parameters:
      args - the command line arguments (not used)
    • run

      public static void run(String expression)
      Evaluate an expression and print the result. Does not use a value pool.
      Parameters:
      expression - the expression
    • run

      public static void run(String expression, RetrieveValue valuePool)
      Evaluate an expression and print the result.
      Parameters:
      expression - the expression
      valuePool - the value pool (may be null