Package org.teavm.model
Enum GenericValueType.ArgumentKind
- java.lang.Object
-
- java.lang.Enum<GenericValueType.ArgumentKind>
-
- org.teavm.model.GenericValueType.ArgumentKind
-
- All Implemented Interfaces:
Serializable,Comparable<GenericValueType.ArgumentKind>
- Enclosing class:
- GenericValueType
public static enum GenericValueType.ArgumentKind extends Enum<GenericValueType.ArgumentKind>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYCONTRAVARIANTCOVARIANTINVARIANT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GenericValueType.ArgumentKindvalueOf(String name)Returns the enum constant of this type with the specified name.static GenericValueType.ArgumentKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COVARIANT
public static final GenericValueType.ArgumentKind COVARIANT
-
CONTRAVARIANT
public static final GenericValueType.ArgumentKind CONTRAVARIANT
-
INVARIANT
public static final GenericValueType.ArgumentKind INVARIANT
-
ANY
public static final GenericValueType.ArgumentKind ANY
-
-
Method Detail
-
values
public static GenericValueType.ArgumentKind[] 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 (GenericValueType.ArgumentKind c : GenericValueType.ArgumentKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GenericValueType.ArgumentKind valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-