Enum JSType.HasPropertyKind
- java.lang.Object
-
- java.lang.Enum<JSType.HasPropertyKind>
-
- com.google.javascript.rhino.jstype.JSType.HasPropertyKind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JSType.HasPropertyKind>
- Enclosing class:
- JSType
public static enum JSType.HasPropertyKind extends java.lang.Enum<JSType.HasPropertyKind>
A tristate value returned from canPropertyBeDefined.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSENT
KNOWN_PRESENT
MAYBE_PRESENT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JSType.HasPropertyKind
of(boolean has)
static JSType.HasPropertyKind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JSType.HasPropertyKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABSENT
public static final JSType.HasPropertyKind ABSENT
-
KNOWN_PRESENT
public static final JSType.HasPropertyKind KNOWN_PRESENT
-
MAYBE_PRESENT
public static final JSType.HasPropertyKind MAYBE_PRESENT
-
-
Method Detail
-
values
public static JSType.HasPropertyKind[] 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 (JSType.HasPropertyKind c : JSType.HasPropertyKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JSType.HasPropertyKind 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
-
of
public static JSType.HasPropertyKind of(boolean has)
-
-