|
|||||||||
| 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 | |
|---|---|
protected Map<String,JavaType> |
_typeParameters
For generic types we need to keep track of mapping from formal into actual types, to be able to resolve generic signatures. |
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(Class<?> subclass)
|
protected static void |
addCommonTypes(Map<String,JavaType> types)
Method that can be called to add known simple types into given class-to-type map. |
static SimpleType |
construct(Class<?> cls,
Map<String,JavaType> typeParams)
|
boolean |
equals(Object o)
|
JavaType |
findVariableType(String name)
Method that can be called to see if this type has generic type binding information for type variables, for given formal type parameter name. |
boolean |
isContainerType()
|
boolean |
isFullyTyped()
Simple types are always fully typed, except for special placeholder types. |
JavaType |
narrowContentsBy(Class<?> subclass)
|
String |
toString()
|
| Methods inherited from class org.codehaus.jackson.type.JavaType |
|---|
_assertSubclass, _widen, getRawClass, hashCode, hasRawClass, isAbstract, isArrayType, isEnumType, isInterface, isPrimitive, narrowBy, widenBy |
| 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
protected Map<String,JavaType> _typeParameters
| Method Detail |
|---|
protected JavaType _narrow(Class<?> subclass)
_narrow in class JavaTypepublic JavaType narrowContentsBy(Class<?> subclass)
narrowContentsBy in class JavaType
public static SimpleType construct(Class<?> cls,
Map<String,JavaType> typeParams)
protected static void addCommonTypes(Map<String,JavaType> types)
public boolean isFullyTyped()
isFullyTyped in class JavaTypepublic boolean isContainerType()
isContainerType in class JavaTypepublic JavaType findVariableType(String name)
JavaType
findVariableType in class JavaTypepublic String toString()
toString in class JavaTypepublic boolean equals(Object o)
equals in class JavaType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||