public class WrapperClassType extends ValueClassType
java.lang.Boolean, java.lang.Byte,
java.lang.Short, java.lang.Integer,
java.lang.Long, java.lang.Character,
java.lang.Float, java.lang.Double.
Class PredefinedType provides public static final variables referring to the JavaType representation for wrapper class types.
PredefinedType.booleanClassType,
PredefinedType.byteClassType,
PredefinedType.shortClassType,
PredefinedType.integerClassType,
PredefinedType.longClassType,
PredefinedType.characterClassType,
PredefinedType.floatClassType,
PredefinedType.doubleClassTypeabstractCollectionType, abstractListType, abstractMapType, abstractSetType, arrayListType, bigDecimalType, bigIntegerType, bitsetType, booleanClassType, booleanType, byteClassType, byteType, characterClassType, charType, collectionType, dateType, dictionaryType, doubleClassType, doubleType, floatClassType, floatType, hashMapType, hashSetType, hashtableType, integerClassType, intType, linkedListType, listType, localeType, longClassType, longType, mapType, numberType, objectType, propertiesType, setType, shortClassType, shortType, sqlDateType, sqlTimestampType, sqlTimeType, stackType, stringType, treeMapType, treeSetType, vectorType, voidTypeclazz, superclass| Modifier | Constructor and Description |
|---|---|
protected |
WrapperClassType(java.lang.Class clazz,
JavaType superclass,
boolean orderable) |
| Modifier and Type | Method and Description |
|---|---|
PrimitiveType |
getWrappedPrimitiveType() |
boolean |
isWrapperClass()
Returns
true if this JavaType represents a Java wrapper
class type. |
isOrderable, isValuegetPredefinedType, getPredefinedTypesgetJavaClass, getJavaField, getModifiers, getName, getSuperclass, isCompatibleWith, isInterfaceequals, getArrayComponentType, getJDOClass, hashCode, isArray, isFloatingPoint, isIntegral, isJDOSupportedCollection, isJDOSupportedMap, isPersistenceCapable, isPrimitive, isTrackable, toStringprotected WrapperClassType(java.lang.Class clazz,
JavaType superclass,
boolean orderable)
public boolean isWrapperClass()
JavaTypetrue if this JavaType represents a Java wrapper
class type.
There are eight Java wrapper class types:
java.lang.Boolean, java.lang.Byte,
java.lang.Short, java.lang.Integer,
java.lang.Long, java.lang.Character,
java.lang.Float, java.lang.Double.
isWrapperClass in interface JavaTypeisWrapperClass in class AbstractJavaTypetrue if this JavaType represents a Java wrapper
class type; false otherwise.public PrimitiveType getWrappedPrimitiveType()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.