Package mondrian.calc

Enum ResultStyle

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ResultStyle>

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

      • 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 Detail

      • ANY_LIST

        public static final java.util.List<ResultStyle> ANY_LIST
      • ITERABLE_ONLY

        public static final java.util.List<ResultStyle> ITERABLE_ONLY
      • MUTABLELIST_ONLY

        public static final java.util.List<ResultStyle> MUTABLELIST_ONLY
      • LIST_ONLY

        public static final java.util.List<ResultStyle> LIST_ONLY
      • ITERABLE_ANY

        public static final java.util.List<ResultStyle> ITERABLE_ANY
      • ITERABLE_LIST

        public static final java.util.List<ResultStyle> ITERABLE_LIST
      • ITERABLE_MUTABLELIST

        public static final java.util.List<ResultStyle> ITERABLE_MUTABLELIST
      • ITERABLE_LIST_MUTABLELIST

        public static final java.util.List<ResultStyle> ITERABLE_LIST_MUTABLELIST
      • LIST_MUTABLELIST

        public static final java.util.List<ResultStyle> LIST_MUTABLELIST
      • MUTABLELIST_LIST

        public static final java.util.List<ResultStyle> MUTABLELIST_LIST
      • ITERABLE_LIST_MUTABLELIST_ANY

        public static final java.util.List<ResultStyle> ITERABLE_LIST_MUTABLELIST_ANY
      • ITERABLE_MUTABLELIST_LIST

        public static final java.util.List<ResultStyle> ITERABLE_MUTABLELIST_LIST
      • ANY_ONLY

        public static final java.util.List<ResultStyle> ANY_ONLY
    • Method Detail

      • values

        public static ResultStyle[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ResultStyle c : ResultStyle.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ResultStyle valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null