| 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 |
|---|---|
| protected String | |
| 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 o)
Implements abstract tools. Indicates whether some other object is "equal to" this one. |
| public StringBuilder | getErasedSignature(StringBuilder sb)
Implements abstract tools. 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 sb)
Implements abstract tools.
|
| public boolean | hasContentType()
Overrides tools. Accessor that allows determining whether |
| public boolean | |
| public JavaType | refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
Implements abstract tools. 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 tools. Returns a string representation of the object. |
| public JavaType | withContentType(JavaType contentType)
Implements abstract tools. 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 h)
Implements abstract tools. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. |
| public SimpleType | withContentValueHandler(Object h)
Implements abstract tools. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. |
| public SimpleType | withStaticTyping()
Implements abstract tools. 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 h)
Implements abstract tools. Internal method that should not be used by any code outside of jackson-databind: only used internally by databind. |
| public SimpleType | withValueHandler(Object h)
Implements abstract tools. 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 tools. | |
| 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
| |
| buildCanonicalName | back to summary |
|---|---|
| protected String buildCanonicalName() Overrides tools.
| |
| 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 tools. 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 tools. Doc from tools. 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 tools.
| |
| hasContentType | back to summary |
|---|---|
| public boolean hasContentType() Overrides tools. Doc from tools. Accessor that allows determining whether
| |
| isContainerType | back to summary |
|---|---|
| public boolean isContainerType() Implements abstract tools.
| |
| refine | back to summary |
|---|---|
| public JavaType refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) Implements abstract tools. Doc from tools. 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 tools. 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 tools. Doc from tools. 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 tools. Doc from tools. 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 tools. Doc from tools. 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 tools. Doc from tools. 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 tools. Doc from tools. 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 tools. Doc from tools. 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.
| |