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
  • 枚举常量详细资料

    • OBJECT

      public static final TypeCode OBJECT
      An Object.
    • BOOLEAN

      public static final TypeCode BOOLEAN
      A boolean.
    • BYTE

      public static final TypeCode BYTE
      A byte.
    • CHAR

      public static final TypeCode CHAR
      A char.
    • DOUBLE

      public static final TypeCode DOUBLE
      A double.
    • FLOAT

      public static final TypeCode FLOAT
      A float.
    • INT

      public static final TypeCode INT
      An int.
    • LONG

      public static final TypeCode LONG
      A long.
    • SHORT

      public static final TypeCode SHORT
      An Object.
  • 方法详细资料

    • 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)