|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.jackson.type.JavaType
org.codehaus.jackson.map.type.SimpleType
public final class SimpleType
Simple types are defined as anything other than one of recognized container types (arrays, Collections, Maps). For our needs we need not know anything further, since we have no way of dealing with generic types other than Collections and Maps.
| Field Summary | |
|---|---|
static SimpleType |
TYPE_UNSPECIFIED
This type token is used if the type is unknown due to type erasure. |
static SimpleType |
TYPE_WILDCARD
This type token is used if the underlying type is only known as unqualified wildcard ("?"). |
| Fields inherited from class org.codehaus.jackson.type.JavaType |
|---|
_class, _hashCode |
| Method Summary | |
|---|---|
protected JavaType |
_narrow(java.lang.Class<?> subclass)
|
protected static void |
addCommonTypes(java.util.Map<java.lang.String,JavaType> types)
Method that can be called to add known simple types into given class-to-type map. |
static SimpleType |
construct(java.lang.Class<?> cls)
|
boolean |
equals(java.lang.Object o)
|
boolean |
isContainerType()
|
boolean |
isFullyTyped()
Simple types are always fully typed, except for special placeholder types. |
JavaType |
narrowContentsBy(java.lang.Class<?> subclass)
|
java.lang.String |
toString()
|
| Methods inherited from class org.codehaus.jackson.type.JavaType |
|---|
_assertSubclass, getRawClass, hashCode, hasRawClass, isAbstract, isArrayType, isEnumType, isInterface, isPrimitive, narrowBy |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SimpleType TYPE_UNSPECIFIED
public static final SimpleType TYPE_WILDCARD
| Method Detail |
|---|
protected JavaType _narrow(java.lang.Class<?> subclass)
_narrow in class JavaTypepublic JavaType narrowContentsBy(java.lang.Class<?> subclass)
narrowContentsBy in class JavaTypepublic static SimpleType construct(java.lang.Class<?> cls)
protected static void addCommonTypes(java.util.Map<java.lang.String,JavaType> types)
public boolean isFullyTyped()
isFullyTyped in class JavaTypepublic boolean isContainerType()
isContainerType in class JavaTypepublic java.lang.String toString()
toString in class JavaTypepublic boolean equals(java.lang.Object o)
equals in class JavaType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||