Package de.uzl.its.swat.instrument
Enum Class DataType
- All Implemented Interfaces:
Serializable
,Comparable<DataType>
,Constable
Represents the different data types that can be encountered in method descriptors.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic DataType
getDataType
(String identifier) Determines the DataType corresponding to a given identifier.Returns the identifier for this DataType.static DataType
Returns the enum constant of this class with the specified name.static DataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTEGER_TYPE
-
BOOLEAN_TYPE
-
CHAR_TYPE
-
BYTE_TYPE
-
SHORT_TYPE
-
FLOAT_TYPE
-
LONG_TYPE
-
DOUBLE_TYPE
-
VOID_TYPE
-
OBJECT_TYPE
-
ARRAY_TYPE
-
METHOD_TYPE
-
UNKNOWN_TYPE
-
STRING_TYPE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIdentifier
Returns the identifier for this DataType.- Returns:
- the identifier
-
getDataType
Determines the DataType corresponding to a given identifier.- Parameters:
identifier
- the identifier to look up- Returns:
- the corresponding DataType, or UNKNOWN_TYPE if not found
-