Package mondrian.calc
Enum Class ResultStyle
- All Implemented Interfaces:
Serializable
,Comparable<ResultStyle>
,Constable
Enumeration of ways that a compiled expression can return its result to
its caller.
- Author:
- jhyde
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that caller will accept any applicable style.Indicates that the expression returns its result as an Iterable which must not be modified by the caller.Indicates that the expression returns its result as a list which must not be modified by the caller.Indicates that the expression returns its result as a list which may safely be modified by the caller.Indicates that the expression results its result as an immutable value.Indicates that the expression results its result as an immutable value which will never be null. -
Field Summary
Modifier and TypeFieldDescriptionstatic final List<ResultStyle>
static final List<ResultStyle>
static final List<ResultStyle>
static final List<ResultStyle>
static final List<ResultStyle>
static final List<ResultStyle>
static final List<ResultStyle>
static final List<ResultStyle>
static final List<ResultStyle>
static final List<ResultStyle>
static final List<ResultStyle>
static final List<ResultStyle>
static final List<ResultStyle>
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResultStyle
Returns the enum constant of this class with the specified name.static ResultStyle[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY
Indicates that caller will accept any applicable style. -
MUTABLE_LIST
Indicates that the expression returns its result as a list which may safely be modified by the caller. -
LIST
Indicates that the expression returns its result as a list which must not be modified by the caller. -
ITERABLE
Indicates that the expression returns its result as an Iterable which must not be modified by the caller. -
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
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
-
ANY_LIST
-
ITERABLE_ONLY
-
MUTABLELIST_ONLY
-
LIST_ONLY
-
ITERABLE_ANY
-
ITERABLE_LIST
-
ITERABLE_MUTABLELIST
-
ITERABLE_LIST_MUTABLELIST
-
LIST_MUTABLELIST
-
MUTABLELIST_LIST
-
ITERABLE_LIST_MUTABLELIST_ANY
-
ITERABLE_MUTABLELIST_LIST
-
ANY_ONLY
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-