Package org.teavm.model.instructions
Enum ArrayElementType
- java.lang.Object
-
- java.lang.Enum<ArrayElementType>
-
- org.teavm.model.instructions.ArrayElementType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ArrayElementType>
public enum ArrayElementType extends java.lang.Enum<ArrayElementType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArrayElementTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ArrayElementType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHAR
public static final ArrayElementType CHAR
-
BYTE
public static final ArrayElementType BYTE
-
SHORT
public static final ArrayElementType SHORT
-
INT
public static final ArrayElementType INT
-
LONG
public static final ArrayElementType LONG
-
FLOAT
public static final ArrayElementType FLOAT
-
DOUBLE
public static final ArrayElementType DOUBLE
-
OBJECT
public static final ArrayElementType OBJECT
-
-
Method Detail
-
values
public static ArrayElementType[] 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 (ArrayElementType c : ArrayElementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ArrayElementType 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
-
-