Enum Class TypeCode

java.lang.Object
java.lang.Enum<TypeCode>
cn.taketoday.expression.spel.ast.TypeCode
所有已实现的接口:
Serializable, Comparable<TypeCode>, Constable

public enum TypeCode extends Enum<TypeCode>
Captures primitive types and their corresponding class objects, plus one special entry that represents all reference (non-primitive) types.
作者:
Andy Clement, Harry Yang
  • 枚举常量详细资料

    • OBJECT

      public static final TypeCode OBJECT
      An Object.
    • BOOLEAN

      public static final TypeCode BOOLEAN
      A boolean.
    • CHAR

      public static final TypeCode CHAR
      A char.
    • BYTE

      public static final TypeCode BYTE
      A byte.
    • SHORT

      public static final TypeCode SHORT
      A short.
    • INT

      public static final TypeCode INT
      An int.
    • LONG

      public static final TypeCode LONG
      A long.
    • FLOAT

      public static final TypeCode FLOAT
      A float.
    • DOUBLE

      public static final TypeCode DOUBLE
      A double.
  • 字段详细资料

    • type

      private final Class<?> type
  • 构造器详细资料

    • TypeCode

      private TypeCode(Class<?> type)
  • 方法详细资料

    • values

      public static TypeCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TypeCode 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getType

      public Class<?> getType()
    • forName

      public static TypeCode forName(String name)
    • forClass

      public static TypeCode forClass(Class<?> clazz)