public class PrimitiveType extends PredefinedType
boolean
,
byte
, short
, int
,
long
, char
,
float
, double
.
Class PredefinedType provides public static final variables referring to the JavaType representation for primtive types.
PredefinedType.booleanType
,
PredefinedType.byteType
,
PredefinedType.shortType
,
PredefinedType.intType
,
PredefinedType.longType
,
PredefinedType.charType
,
PredefinedType.floatType
,
PredefinedType.doubleType
abstractCollectionType, 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, voidType
clazz, superclass
Modifier | Constructor and Description |
---|---|
protected |
PrimitiveType(java.lang.Class clazz)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
WrapperClassType |
getWrapperClassType()
Returns the JavaType instance of the Java wrapper class that
corresponds to this primitive type.
|
boolean |
isPrimitive()
Returns
true if this JavaType represents a primitive
type. |
boolean |
isValue()
Returns
true if this JavaType represents a type whoses
values may be treated as values rather than refernces during
storing. |
getPredefinedType, getPredefinedTypes
getDeclaredJavaFields, getDeclaredJavaProperties, getJavaClass, getJavaField, getJavaProperty, getModifiers, getName, getSuperclass, getUnderlyingObject, isCompatibleWith, isInterface
equals, getArrayComponentType, getJDOClass, hashCode, isArray, isFloatingPoint, isIntegral, isJDOSupportedCollection, isJDOSupportedMap, isOrderable, isPersistenceCapable, isTrackable, isWrapperClass, toString
protected PrimitiveType(java.lang.Class clazz)
clazz
- the Class instance representing the typepublic boolean isPrimitive()
true
if this JavaType represents a primitive
type.isPrimitive
in interface JavaType
isPrimitive
in class AbstractJavaType
true
if this JavaTypre represents a primitive
type; false
otherwise.public boolean isValue()
true
if this JavaType represents a type whoses
values may be treated as values rather than refernces during
storing.isValue
in interface JavaType
isValue
in class AbstractJavaType
true
if this JavaType represents a value type;
false
otherwise.public WrapperClassType getWrapperClassType()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.