JavaType.
| Modifier and Type | Field and Description |
|---|---|
| protected final JavaType | _componentType
Type of elements in the array. |
| protected final Object | _emptyArray
We will also keep track of shareable instance of empty array, since it usually needs to be constructed any way; and because it is essentially immutable and thus can be shared. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static ArrayType | |
| public static ArrayType | |
| public boolean | equals(Object o)
Implements abstract tools. Indicates whether some other object is "equal to" this one. |
| public JavaType | getContentType()
Overrides tools. Method for accessing content type of this type, if type has such a thing: simple types do not, structured types do (like arrays, Collections and Maps) |
| public Object | getContentTypeHandler()
Overrides tools. Internal accessor that should not be used by any code outside of jackson-databind: only used internally by databind. |
| public Object | getContentValueHandler()
Overrides tools. Internal accessor that should not be used by any code outside of jackson-databind: only used internally by databind. |
| public Object[] | |
| 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 | hasGenericTypes()
Overrides tools. Method that can be used to find out if the type directly declares generic parameters (for its direct super-class and/or super-interfaces). |
| public boolean | hasHandlers()
Overrides tools. Helper method that checks whether this type, or its (optional) key
or content type has |
| public boolean | isAbstract()
Overrides tools. For some odd reason, modifiers for array classes would claim they are abstract types. |
| public boolean | |
| public boolean | isConcrete()
Overrides tools. For some odd reason, modifiers for array classes would claim they are abstract types. |
| public boolean | |
| public JavaType | refine(Class<?> contentClass, 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 ArrayType | 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 ArrayType | 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 ArrayType | 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 ArrayType | 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 ArrayType | 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. |
| _componentType | back to summary |
|---|---|
| protected final JavaType _componentType Type of elements in the array. | |
| _emptyArray | back to summary |
|---|---|
| protected final Object _emptyArray We will also keep track of shareable instance of empty array, since it usually needs to be constructed any way; and because it is essentially immutable and thus can be shared. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| ArrayType | back to summary |
|---|---|
| protected ArrayType(JavaType componentType, TypeBindings bindings, Object emptyInstance, Object valueHandler, Object typeHandler, boolean asStatic) | |
| construct | back to summary |
|---|---|
| public static ArrayType construct(JavaType componentType, TypeBindings bindings) | |
| construct | back to summary |
|---|---|
| public static ArrayType construct(JavaType componentType, TypeBindings bindings, Object valueHandler, Object typeHandler) | |
| 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.
| |
| getContentType | back to summary |
|---|---|
| public JavaType getContentType() Overrides tools. Doc from tools. Method for accessing content type of this type, if type has such a thing: simple types do not, structured types do (like arrays, Collections and Maps)
| |
| getContentTypeHandler | back to summary |
|---|---|
| public Object getContentTypeHandler() Overrides tools. Doc from tools. Internal accessor that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0.
| |
| getContentValueHandler | back to summary |
|---|---|
| public Object getContentValueHandler() Overrides tools. Doc from tools. Internal accessor that should not be used by any code outside of jackson-databind: only used internally by databind. May be removed from Jackson 3.0.
| |
| getEmptyArray | back to summary |
|---|---|
public Object[] getEmptyArray()
| |
| 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.
| |
| hasGenericTypes | back to summary |
|---|---|
| public boolean hasGenericTypes() Overrides tools. Doc from tools. Method that can be used to find out if the type directly declares generic parameters (for its direct super-class and/or super-interfaces).
| |
| hasHandlers | back to summary |
|---|---|
| public boolean hasHandlers() Overrides tools. Doc from tools. Helper method that checks whether this type, or its (optional) key
or content type has
| |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() Overrides tools. For some odd reason, modifiers for array classes would claim they are abstract types. Not so, at least for our purposes.
| |
| isArrayType | back to summary |
|---|---|
| public boolean isArrayType() Overrides tools.
| |
| isConcrete | back to summary |
|---|---|
| public boolean isConcrete() Overrides tools. For some odd reason, modifiers for array classes would claim they are abstract types. Not so, at least for our purposes.
| |
| isContainerType | back to summary |
|---|---|
| public boolean isContainerType() Implements abstract tools.
| |
| refine | back to summary |
|---|---|
| public JavaType refine(Class<?> contentClass, 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 ArrayType 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 ArrayType 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 ArrayType 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 ArrayType 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 ArrayType 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.
| |