Package org.teavm.model.util
Enum VariableType
- java.lang.Object
-
- java.lang.Enum<VariableType>
-
- org.teavm.model.util.VariableType
-
- All Implemented Interfaces:
Serializable,Comparable<VariableType>
public enum VariableType extends Enum<VariableType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BYTE_ARRAYCHAR_ARRAYDOUBLEDOUBLE_ARRAYFLOATFLOAT_ARRAYINTINT_ARRAYLONGLONG_ARRAYOBJECTOBJECT_ARRAYSHORT_ARRAY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VariableTypevalueOf(String name)Returns the enum constant of this type with the specified name.static VariableType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INT
public static final VariableType INT
-
LONG
public static final VariableType LONG
-
FLOAT
public static final VariableType FLOAT
-
DOUBLE
public static final VariableType DOUBLE
-
OBJECT
public static final VariableType OBJECT
-
BYTE_ARRAY
public static final VariableType BYTE_ARRAY
-
SHORT_ARRAY
public static final VariableType SHORT_ARRAY
-
CHAR_ARRAY
public static final VariableType CHAR_ARRAY
-
INT_ARRAY
public static final VariableType INT_ARRAY
-
LONG_ARRAY
public static final VariableType LONG_ARRAY
-
FLOAT_ARRAY
public static final VariableType FLOAT_ARRAY
-
DOUBLE_ARRAY
public static final VariableType DOUBLE_ARRAY
-
OBJECT_ARRAY
public static final VariableType OBJECT_ARRAY
-
-
Method Detail
-
values
public static VariableType[] 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 (VariableType c : VariableType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VariableType 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
-
-