Class StiFunctionsProgramming

java.lang.Object
com.stimulsoft.report.dictionary.functions.StiFunctionsProgramming

public class StiFunctionsProgramming extends Object
Copyright Stimulsoft
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    eval(Object report, String expression)
    Evaluates the specified expression in the context of the given report.
    static double
    evalDecimal(Object report, String expression)
    Evaluates the specified expression in the context of the given report and returns the result as a decimal.
    static double
    evalDouble(Object report, String expression)
    Evaluates the specified expression in the context of the given report and returns the result as a double.
    static long
    evalLong(Object report, String expression)
    Evaluates the specified expression in the context of the given report and returns the result as a long.
    static Object
    A double-precision floating-point number greater than or equal to 0.0 and less than 1.0.
    static Object
    rand(int seed)
    A double-precision floating-point number greater than or equal to 0.0 and less than 1.0.
    static String
    Returns a simplified runtime identifier built from the current runtime version.
    static String
    Returns the runtime product name for the current environment.
    static String
    Returns operating system family information for the current environment.
    static String
    Returns the runtime type name for the current environment.
    static String
    Returns the runtime version for the current environment.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StiFunctionsProgramming

      public StiFunctionsProgramming()
  • Method Details

    • runtimeType

      public static String runtimeType()
      Returns the runtime type name for the current environment.
      Returns:
      The runtime type name.
    • runtimeName

      public static String runtimeName()
      Returns the runtime product name for the current environment.
      Returns:
      The runtime product name.
    • runtimeVersion

      public static String runtimeVersion()
      Returns the runtime version for the current environment.
      Returns:
      The runtime version.
    • runtimeIdentifier

      public static String runtimeIdentifier()
      Returns a simplified runtime identifier built from the current runtime version.
      Returns:
      The runtime identifier string.
    • runtimeOS

      public static String runtimeOS()
      Returns operating system family information for the current environment.
      Returns:
      The operating system family name.
    • eval

      public static String eval(Object report, String expression)
      Evaluates the specified expression in the context of the given report.
      Parameters:
      report - The report Object in which context the expression will be evaluated.
      expression - The expression to be evaluated.
      Returns:
      The result of the evaluated expression as a String.
    • evalDecimal

      public static double evalDecimal(Object report, String expression)
      Evaluates the specified expression in the context of the given report and returns the result as a decimal.
      Parameters:
      report - The report Object in which context the expression will be evaluated.
      expression - The expression to be evaluated.
      Returns:
      The result of the evaluated expression as a decimal.
    • evalDouble

      public static double evalDouble(Object report, String expression)
      Evaluates the specified expression in the context of the given report and returns the result as a double.
      Parameters:
      report - The report Object in which context the expression will be evaluated.
      expression - The expression to be evaluated.
      Returns:
      The result of the evaluated expression as a double.
    • evalLong

      public static long evalLong(Object report, String expression)
      Evaluates the specified expression in the context of the given report and returns the result as a long.
      Parameters:
      report - The report Object in which context the expression will be evaluated.
      expression - The expression to be evaluated.
      Returns:
      The result of the evaluated expression as a long.
    • rand

      public static Object rand()
      A double-precision floating-point number greater than or equal to 0.0 and less than 1.0.
      Returns:
    • rand

      public static Object rand(int seed)
      A double-precision floating-point number greater than or equal to 0.0 and less than 1.0.
      Returns: