| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | SimpleType(Class<?> cls)
Constructor only used by core Jackson databind functionality; should never be called by application code. |
| protected | |
| protected | SimpleType(TypeBase base)
Simple copy-constructor, usually used when upgrading/refining a simple type into more specialized type. |
| protected | SimpleType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, Object valueHandler, Object typeHandler, boolean asStatic)
|
| protected | SimpleType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, int extraHash, Object valueHandler, Object typeHandler, boolean asStatic)
Pass-through constructor used by |
| Modifier and Type | Method and Description |
|---|---|
| private static JavaType | _buildSuperClass(Class<?> superClass, TypeBindings b)
Helper method we need to recursively build skeletal representations of superclasses. |
| protected String | |
| public static SimpleType | |
| public static SimpleType | constructUnsafe(Class<?> raw)
Method used by core Jackson classes: NOT to be used by application code: it does NOT properly handle inspection of super-types, so neither parent Classes nor implemented Interfaces are accessible with resulting type instance. |
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract com. Indicates whether some other object is "equal to" this one. |
| public StringBuilder | getErasedSignature(StringBuilder
StringBuilder to append signature to sb)Implements abstract com. 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. |
| public StringBuilder | getGenericSignature(StringBuilder
StringBuilder to append signature to sb)Implements abstract com.
|
| public boolean | hasContentType()
Overrides com. Accessor that allows determining whether |
| public boolean | |
| public JavaType | refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
Implements abstract com. 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. |
| public String | toString()
Implements abstract com. Returns a string representation of the object. |
| public JavaType | withContentType(JavaType contentType)
Implements abstract com. 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. |
| public JavaType | withContentTypeHandler(Object
Handler to pass to new instance created h)Implements abstract com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. |
| public SimpleType | withContentValueHandler(Object
Handler to pass to new instance created h)Implements abstract com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. |
| public SimpleType | withStaticTyping()
Implements abstract com. 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. |
| public SimpleType | withTypeHandler(Object
Handler to pass to new instance created h)Implements abstract com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. |
| public SimpleType | withValueHandler(Object
Handler to pass to new instance created h)Implements abstract com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| SimpleType | back to summary |
|---|---|
| protected SimpleType(Class<?> cls) Constructor only used by core Jackson databind functionality; should never be called by application code.
As with other direct construction that by-passes | |
| SimpleType | back to summary |
|---|---|
| protected SimpleType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts) | |
| SimpleType | back to summary |
|---|---|
| protected SimpleType(TypeBase base) Simple copy-constructor, usually used when upgrading/refining a simple type into more specialized type.
| |
| SimpleType | back to summary |
|---|---|
| protected SimpleType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, Object valueHandler, Object typeHandler, boolean asStatic) | |
| SimpleType | back to summary |
|---|---|
| protected SimpleType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, int extraHash, Object valueHandler, Object typeHandler, boolean asStatic) Pass-through constructor used by
| |
| _buildSuperClass | back to summary |
|---|---|
| private static JavaType _buildSuperClass(Class<?> superClass, TypeBindings b) Helper method we need to recursively build skeletal representations of superclasses.
| |
| buildCanonicalName | back to summary |
|---|---|
| protected String buildCanonicalName() Overrides com.
| |
| construct | back to summary |
|---|---|
| public static SimpleType construct(Class<?> cls)
Deprecated Since 2.7 Method that should NOT to be used by application code:
it does NOT properly handle inspection of super-types, so neither parent
Classes nor implemented Interfaces are accessible with resulting type
instance. Instead, please use
Note that prior to 2.7, method usage was not limited and would typically
have worked acceptably: the problem comes from inability to resolve super-type
information, for which
| |
| constructUnsafe | back to summary |
|---|---|
| public static SimpleType constructUnsafe(Class<?> raw) Method used by core Jackson classes: NOT to be used by application code: it does NOT properly handle inspection of super-types, so neither parent Classes nor implemented Interfaces are accessible with resulting type instance. Note public only because it is called by | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract com. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getErasedSignature | back to summary |
|---|---|
| public StringBuilder getErasedSignature(StringBuilder sb) Implements abstract com. Doc from com. 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.
| |
| getGenericSignature | back to summary |
|---|---|
| public StringBuilder getGenericSignature(StringBuilder sb) Implements abstract com.
| |
| hasContentType | back to summary |
|---|---|
| public boolean hasContentType() Overrides com. Doc from com. Accessor that allows determining whether
| |
| isContainerType | back to summary |
|---|---|
| public boolean isContainerType() Implements abstract com.
| |
| refine | back to summary |
|---|---|
| public JavaType refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) Implements abstract com. Doc from com. 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract com. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| withContentType | back to summary |
|---|---|
| public JavaType withContentType(JavaType contentType) Implements abstract com. Doc from com. 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. If content type is already set to given type, | |
| withContentTypeHandler | back to summary |
|---|---|
| public JavaType withContentTypeHandler(Object h) Implements abstract com. Doc from com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0. 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. | |
| withContentValueHandler | back to summary |
|---|---|
| public SimpleType withContentValueHandler(Object h) Implements abstract com. Doc from com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0. 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.
| |
| withStaticTyping | back to summary |
|---|---|
| public SimpleType withStaticTyping() Implements abstract com. Doc from com. 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. The main use case is to allow forcing of specific root value serialization type, and specifically in resolving serializers for contained types (element types for arrays, Collections and Maps).
| |
| withTypeHandler | back to summary |
|---|---|
| public SimpleType withTypeHandler(Object h) Implements abstract com. Doc from com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0. This mutant factory method will construct a new instance that is identical to this instance, except that it will have specified type handler assigned.
| |
| withValueHandler | back to summary |
|---|---|
| public SimpleType withValueHandler(Object h) Implements abstract com. Doc from com. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0. This mutant factory method will construct a new instance that is identical to this instance, except that it will have specified value handler assigned.
| |