Package com.google.javascript.jscomp
Enum NodeUtil.ValueType
- java.lang.Object
-
- java.lang.Enum<NodeUtil.ValueType>
-
- com.google.javascript.jscomp.NodeUtil.ValueType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NodeUtil.ValueType>
- Enclosing class:
- NodeUtil
public static enum NodeUtil.ValueType extends java.lang.Enum<NodeUtil.ValueType>
- See Also:
NodeUtil.getKnownValueType(Node)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NodeUtil.ValueType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NodeUtil.ValueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDETERMINED
public static final NodeUtil.ValueType UNDETERMINED
-
NULL
public static final NodeUtil.ValueType NULL
-
VOID
public static final NodeUtil.ValueType VOID
-
NUMBER
public static final NodeUtil.ValueType NUMBER
-
BIGINT
public static final NodeUtil.ValueType BIGINT
-
STRING
public static final NodeUtil.ValueType STRING
-
BOOLEAN
public static final NodeUtil.ValueType BOOLEAN
-
OBJECT
public static final NodeUtil.ValueType OBJECT
-
-
Method Detail
-
values
public static NodeUtil.ValueType[] 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 (NodeUtil.ValueType c : NodeUtil.ValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeUtil.ValueType 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
-
-