Package mondrian.calc

Enum Class ResultStyle

java.lang.Object
java.lang.Enum<ResultStyle>
mondrian.calc.ResultStyle
All Implemented Interfaces:
Serializable, Comparable<ResultStyle>, Constable

public enum ResultStyle extends Enum<ResultStyle>
Enumeration of ways that a compiled expression can return its result to its caller.
Author:
jhyde
  • Enum Constant Details

    • ANY

      public static final ResultStyle ANY
      Indicates that caller will accept any applicable style.
    • MUTABLE_LIST

      public static final ResultStyle MUTABLE_LIST
      Indicates that the expression returns its result as a list which may safely be modified by the caller.
    • LIST

      public static final ResultStyle LIST
      Indicates that the expression returns its result as a list which must not be modified by the caller.
    • ITERABLE

      public static final ResultStyle ITERABLE
      Indicates that the expression returns its result as an Iterable which must not be modified by the caller.
    • VALUE

      public static final ResultStyle VALUE
      Indicates that the expression results its result as an immutable value. This is typical for expressions which return string, datetime and numeric values.
    • VALUE_NOT_NULL

      public static final ResultStyle VALUE_NOT_NULL
      Indicates that the expression results its result as an immutable value which will never be null. This is typical for expressions which return string, datetime and numeric values.
  • Field Details

  • Method Details

    • values

      public static ResultStyle[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResultStyle valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null