public final class SimpleType extends TypeBase
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
_typeNames
Names of generic type arguments for this type; will
match values in
_typeParameters |
protected JavaType[] |
_typeParameters
Generic type arguments for this type.
|
_class, _hashCode, _typeHandler, _valueHandler| Modifier | Constructor and Description |
|---|---|
protected |
SimpleType(Class<?> cls) |
protected |
SimpleType(Class<?> cls,
String[] typeNames,
JavaType[] typeParams)
Deprecated.
|
protected |
SimpleType(Class<?> cls,
String[] typeNames,
JavaType[] typeParams,
Object valueHandler,
Object typeHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected JavaType |
_narrow(Class<?> subclass) |
protected String |
buildCanonicalName() |
static SimpleType |
construct(Class<?> cls) |
static SimpleType |
constructUnsafe(Class<?> raw)
Method used by core Jackson classes: NOT to be used by application code.
|
JavaType |
containedType(int index)
Method for accessing definitions of contained ("child")
types.
|
int |
containedTypeCount()
Method for checking how many contained types this type
has.
|
String |
containedTypeName(int index)
Method for accessing name of type variable in indicated
position.
|
boolean |
equals(Object o) |
StringBuilder |
getErasedSignature(StringBuilder sb)
Method for accessing signature without generic
type information, in form compatible with all versions
of JVM, and specifically used for type descriptions
when generating byte code.
|
StringBuilder |
getGenericSignature(StringBuilder sb) |
boolean |
isContainerType() |
JavaType |
narrowContentsBy(Class<?> subclass) |
String |
toString() |
JavaType |
widenContentsBy(Class<?> subclass) |
JavaType |
withContentTypeHandler(Object h)
"Copy method" that will construct a new instance that is identical to
this instance, except that its content type will have specified
type handler assigned.
|
SimpleType |
withContentValueHandler(Object h) |
SimpleType |
withTypeHandler(Object h)
"Copy method" that will construct a new instance that is identical to
this instance, except that it will have specified type handler assigned.
|
SimpleType |
withValueHandler(Object h) |
_classSignature, getTypeHandler, getValueHandler, serialize, serializeWithType, toCanonical_assertSubclass, _widen, forcedNarrowBy, getContentType, getErasedSignature, getGenericSignature, getKeyType, getRawClass, hasGenericTypes, hashCode, hasRawClass, isAbstract, isArrayType, isCollectionLikeType, isConcrete, isEnumType, isFinal, isInterface, isMapLikeType, isPrimitive, isThrowable, narrowBy, setValueHandler, widenByprotected final JavaType[] _typeParameters
protected final String[] _typeNames
_typeParametersprotected SimpleType(Class<?> cls)
@Deprecated protected SimpleType(Class<?> cls, String[] typeNames, JavaType[] typeParams)
public static SimpleType constructUnsafe(Class<?> raw)
NOTE: public only because it is called by ObjectMapper which is
not in same package
public JavaType narrowContentsBy(Class<?> subclass)
narrowContentsBy in class JavaTypepublic JavaType widenContentsBy(Class<?> subclass)
widenContentsBy in class JavaTypepublic static SimpleType construct(Class<?> cls)
public SimpleType withTypeHandler(Object h)
JavaTypewithTypeHandler in class JavaTypepublic JavaType withContentTypeHandler(Object h)
JavaTypewithContentTypeHandler in class JavaTypepublic SimpleType withValueHandler(Object h)
withValueHandler in class JavaTypepublic SimpleType withContentValueHandler(Object h)
withContentValueHandler in class JavaTypeprotected String buildCanonicalName()
buildCanonicalName in class TypeBasepublic boolean isContainerType()
isContainerType in class JavaTypepublic int containedTypeCount()
JavaTypecontainedTypeCount in class JavaTypepublic JavaType containedType(int index)
JavaTypecontainedType in class JavaTypeindex - Index of contained type to returnpublic String containedTypeName(int index)
JavaTypecontainedTypeName in class JavaTypeindex - Index of contained type to returnpublic StringBuilder getErasedSignature(StringBuilder sb)
JavaTypegetErasedSignature in class TypeBasesb - StringBuilder to append signature topublic StringBuilder getGenericSignature(StringBuilder sb)
getGenericSignature in class TypeBasesb - StringBuilder to append signature to