Interface ScalarTokenType

All Superinterfaces:
ScalarTyped, Serializable, TokenType, TokenTyped
All Known Implementing Classes:
EnumTokenType, ObjectTokenType

public interface ScalarTokenType extends TokenType, ScalarTyped
A description of a scalar data type. Scalar types are concrete, atomic types; unlike composite types they cannot be divided into smaller tokens.

Several scalar types exist, corresponding to Java primitive types and other commonly used data types. Constant descriptor objects for all supported scalar types are available within TokenTypeConstant. In alphabetical order, they are:

Additional, any Java class can be described as a scalar type by using the appropriate ObjectTokenType. Note that the ObjectTokenType for a boxed type (Integer, Long, etc.) is not equivalent to the similar type listed above. That is, ObjectTokenType>Long< is not the same as TokenTypeConstant#LONG.

No explicit hierarchy exists among any of these types, although there is an implicit ordering of the number types from narrowest to widest:

  • TokenTypeConstant.INT
  • TokenTypeConstant.LONG
  • TokenTypeConstant.FLOAT
  • TokenTypeConstant.MONEY
  • TokenTypeConstant.DOUBLE
  • TokenTypeConstant.NUMERIC
When necessary, implicit conversion of narrow types to wider types will be performed.