Class Formulas

java.lang.Object
org.openlca.formula.Formulas

public final class Formulas extends Object
  • Method Details

    • getVariables

      public static List<String> getVariables(String expression)
      Get the variables from the given expression. A variable in an expression is an identifier that is not followed by an open parenthesis (which is a function call instead).
    • renameVariable

      public static String renameVariable(String expression, String oldName, String newName)
    • format

      public static String format(String expression)