public class ResolvedRecursiveType extends TypeBase
JsonSerializable.Base
Modifier and Type | Field and Description |
---|---|
protected JavaType |
_referencedType |
_bindings, _superClass, _superInterfaces
_asStatic, _class, _hash, _typeHandler, _valueHandler
Constructor and Description |
---|
ResolvedRecursiveType(Class<?> erasedType,
TypeBindings bindings) |
Modifier and Type | Method and Description |
---|---|
protected JavaType |
_narrow(Class<?> subclass)
Deprecated.
|
boolean |
equals(Object o) |
TypeBindings |
getBindings() |
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) |
JavaType |
getSelfReferencedType() |
JavaType |
getSuperClass()
Accessor for finding fully resolved parent class of this type,
if it has one; null if not.
|
boolean |
isContainerType() |
JavaType |
refine(Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces)
Mutant factory method that will try to create and return a sub-type instance
for known parameterized types; for other types will return `null` to indicate
that no just refinement makes necessary sense, without trying to detect
special status through implemented interfaces.
|
void |
setReference(JavaType ref) |
String |
toString() |
JavaType |
withContentType(JavaType contentType)
Mutant factory method that may be called on structured types
that have a so-called content type (element of arrays, value type
of Maps, referenced type of referential types),
and will construct a new instance that is identical to
this instance, except that it has specified content type, instead of current
one.
|
JavaType |
withContentTypeHandler(Object h)
Internal method that should not be used by any code outside of
jackson-databind: only used internally by databind.
|
JavaType |
withContentValueHandler(Object h)
Internal method that should not be used by any code outside of
jackson-databind: only used internally by databind.
|
JavaType |
withStaticTyping()
Method that can be called to get a type instance that indicates
that values of the type should be handled using "static typing" for purposes
of serialization (as opposed to "dynamic" aka runtime typing):
meaning that no runtime information is needed for determining serializers to use.
|
JavaType |
withTypeHandler(Object h)
Internal method that should not be used by any code outside of
jackson-databind: only used internally by databind.
|
JavaType |
withValueHandler(Object h)
Internal method that should not be used by any code outside of
jackson-databind: only used internally by databind.
|
_bogusSuperClass, _classSignature, _hasNTypeParameters, buildCanonicalName, containedType, containedTypeCount, containedTypeName, findSuperType, findTypeParameters, getInterfaces, serialize, serializeWithType, toCanonical
containedTypeOrUnknown, forcedNarrowBy, getContentType, getContentTypeHandler, getContentValueHandler, getErasedSignature, getGenericSignature, getKeyType, getParameterSource, getRawClass, getReferencedType, getTypeHandler, getValueHandler, hasContentType, hasGenericTypes, hasHandlers, hashCode, hasRawClass, hasValueHandler, isAbstract, isArrayType, isCollectionLikeType, isConcrete, isEnumImplType, isEnumType, isFinal, isInterface, isJavaLangObject, isMapLikeType, isPrimitive, isRecordType, isThrowable, isTypeOrSubTypeOf, isTypeOrSuperTypeOf, useStaticType, withHandlersFrom
isReferenceType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTypeName
protected JavaType _referencedType
public ResolvedRecursiveType(Class<?> erasedType, TypeBindings bindings)
public void setReference(JavaType ref)
public JavaType getSuperClass()
JavaType
getSuperClass
in class TypeBase
public JavaType getSelfReferencedType()
public TypeBindings getBindings()
getBindings
in class TypeBase
public StringBuilder getGenericSignature(StringBuilder sb)
getGenericSignature
in class TypeBase
sb
- StringBuilder to append signature topublic StringBuilder getErasedSignature(StringBuilder sb)
JavaType
getErasedSignature
in class TypeBase
sb
- StringBuilder to append signature topublic JavaType withContentType(JavaType contentType)
JavaType
this
is returned.
If type does not have a content type (which is the case with
SimpleType
), IllegalArgumentException
will be thrown.withContentType
in class JavaType
public JavaType withTypeHandler(Object h)
JavaType
This mutant factory method will construct a new instance that is identical to this instance, except that it will have specified type handler assigned.
withTypeHandler
in class JavaType
h
- Handler to pass to new instance createdpublic JavaType withContentTypeHandler(Object h)
JavaType
This mutant factory method will construct a new instance that is identical to this instance, except that it will have specified content type (element type for arrays, value type for Maps and so forth) handler assigned.
withContentTypeHandler
in class JavaType
h
- Handler to pass to new instance createdpublic JavaType withValueHandler(Object h)
JavaType
This mutant factory method will construct a new instance that is identical to this instance, except that it will have specified value handler assigned.
withValueHandler
in class JavaType
h
- Handler to pass to new instance createdpublic JavaType withContentValueHandler(Object h)
JavaType
Mutant factory method that will construct a new instance that is identical to this instance, except that it will have specified content value handler assigned.
withContentValueHandler
in class JavaType
h
- Handler to pass to new instance createdpublic JavaType withStaticTyping()
JavaType
withStaticTyping
in class JavaType
@Deprecated protected JavaType _narrow(Class<?> subclass)
public JavaType refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
JavaType
public boolean isContainerType()
isContainerType
in class JavaType
Copyright © 2008–2021 FasterXML. All rights reserved.