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, getJavaField, getJDOClass, getModifiers, getSuperclass, hashCode, isArray, isFloatingPoint, isIntegral, isInterface, isJDOSupportedCollection, isJDOSupportedMap, isOrderable, isPersistenceCapable, isPrimitive, isTrackable, isValue, isWrapperClass, toStringpublic 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 JavaTypeisCompatibleWith in class AbstractJavaTypejavaType - 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 JavaTypegetName in class AbstractJavaTypeCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.