public class NullType extends AbstractJavaType
Modifier and Type | Field and Description |
---|---|
static NullType |
nullType
The singleton NullType instance.
|
Modifier | Constructor and Description |
---|---|
protected |
NullType()
Creates new a NullType instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the type.
|
boolean |
isCompatibleWith(JavaType javaType)
Returns true if this JavaType is compatible with the specified
JavaType.
|
equals, getArrayComponentType, getDeclaredJavaFields, getDeclaredJavaProperties, getJavaField, getJavaProperty, getJDOClass, getModifiers, getSuperclass, getUnderlyingObject, hashCode, isArray, isFloatingPoint, isIntegral, isInterface, isJDOSupportedCollection, isJDOSupportedMap, isOrderable, isPersistenceCapable, isPrimitive, isTrackable, isValue, isWrapperClass, toString
public static final NullType nullType
protected NullType()
nullType
should be used.public boolean isCompatibleWith(JavaType javaType)
true
, if the
specified javaType is a not a primitive type, because the type of
null is compatiple with all reference types.isCompatibleWith
in interface JavaType
isCompatibleWith
in class AbstractJavaType
javaType
- the type this JavaType is checked with.true
if this is compatible with the specified
type; false
otherwise.public java.lang.String getName()
getName
in interface JavaType
getName
in class AbstractJavaType
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.