Enum Class DataType

java.lang.Object
java.lang.Enum<DataType>
de.uzl.its.swat.instrument.DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>, Constable

public enum DataType extends Enum<DataType>
Represents the different data types that can be encountered in method descriptors.
  • Enum Constant Details

    • INTEGER_TYPE

      public static final DataType INTEGER_TYPE
    • BOOLEAN_TYPE

      public static final DataType BOOLEAN_TYPE
    • CHAR_TYPE

      public static final DataType CHAR_TYPE
    • BYTE_TYPE

      public static final DataType BYTE_TYPE
    • SHORT_TYPE

      public static final DataType SHORT_TYPE
    • FLOAT_TYPE

      public static final DataType FLOAT_TYPE
    • LONG_TYPE

      public static final DataType LONG_TYPE
    • DOUBLE_TYPE

      public static final DataType DOUBLE_TYPE
    • VOID_TYPE

      public static final DataType VOID_TYPE
    • OBJECT_TYPE

      public static final DataType OBJECT_TYPE
    • ARRAY_TYPE

      public static final DataType ARRAY_TYPE
    • METHOD_TYPE

      public static final DataType METHOD_TYPE
    • UNKNOWN_TYPE

      public static final DataType UNKNOWN_TYPE
    • STRING_TYPE

      public static final DataType STRING_TYPE
  • Method Details

    • values

      public static DataType[] 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

      public static DataType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getIdentifier

      public String getIdentifier()
      Returns the identifier for this DataType.
      Returns:
      the identifier
    • getDataType

      public static DataType getDataType(String identifier)
      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