Enum NativeColorId
- java.lang.Object
-
- java.lang.Enum<NativeColorId>
-
- com.google.javascript.jscomp.colors.NativeColorId
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NativeColorId>
public enum NativeColorId extends java.lang.Enum<NativeColorId>
All colors that either exist a priori in the type system, including JS primitives and type-system-only types, or that otherwise have special behavior during optimizations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIGINT
BIGINT_OBJECT
BOOLEAN
BOOLEAN_OBJECT
NULL_OR_VOID
NUMBER
NUMBER_OBJECT
STRING
STRING_OBJECT
SYMBOL
SYMBOL_OBJECT
TOP_OBJECT
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NativeColorId
box()
static NativeColorId
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NativeColorId[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIGINT_OBJECT
public static final NativeColorId BIGINT_OBJECT
-
BOOLEAN_OBJECT
public static final NativeColorId BOOLEAN_OBJECT
-
NUMBER_OBJECT
public static final NativeColorId NUMBER_OBJECT
-
STRING_OBJECT
public static final NativeColorId STRING_OBJECT
-
SYMBOL_OBJECT
public static final NativeColorId SYMBOL_OBJECT
-
BIGINT
public static final NativeColorId BIGINT
-
BOOLEAN
public static final NativeColorId BOOLEAN
-
NUMBER
public static final NativeColorId NUMBER
-
STRING
public static final NativeColorId STRING
-
SYMBOL
public static final NativeColorId SYMBOL
-
NULL_OR_VOID
public static final NativeColorId NULL_OR_VOID
-
UNKNOWN
public static final NativeColorId UNKNOWN
-
TOP_OBJECT
public static final NativeColorId TOP_OBJECT
-
-
Method Detail
-
values
public static NativeColorId[] 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 (NativeColorId c : NativeColorId.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NativeColorId 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 namejava.lang.NullPointerException
- if the argument is null
-
box
public final NativeColorId box()
-
-