public static enum JsMessage.Style extends java.lang.Enum<JsMessage.Style>
Modifier and Type | Method and Description |
---|---|
(package private) static JsMessage.Style |
getFromParams(boolean useClosure,
boolean allowLegacyMessages)
Calculates current messages
JsMessage.Style based on the given arguments. |
static JsMessage.Style |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsMessage.Style[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsMessage.Style LEGACY
public static final JsMessage.Style RELAX
public static final JsMessage.Style CLOSURE
public static JsMessage.Style[] values()
for (JsMessage.Style c : JsMessage.Style.values()) System.out.println(c);
public static JsMessage.Style valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullstatic JsMessage.Style getFromParams(boolean useClosure, boolean allowLegacyMessages)
JsMessage.Style
based on the given arguments.useClosure
- if true then use closure style, otherwise notallowLegacyMessages
- if true then allow legacy messages otherwise
not