| Modifier and Type | Field and Description |
|---|---|
| protected final TypeBindings | _bindings
Bindings in effect for this type instance; possibly empty. |
| pack-priv transient volatile String | _canonicalName
Lazily initialized external representation of the type |
| protected final JavaType | |
| protected final JavaType[] | |
| private static final TypeBindings | |
| private static final JavaType[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected static StringBuilder | _classSignature(Class<?> cls, StringBuilder sb, boolean
Whether to add trailing semicolon for non-primitive
(reference) types or not trailingSemicolon)
|
| protected boolean | |
| protected String | |
| public JavaType | containedType(int index)
Implements abstract tools. Method for accessing definitions of contained ("child") types. |
| public int | containedTypeCount()
Implements abstract tools. Method for checking how many contained types this type has. |
| public final JavaType | findSuperType(Class<?> rawTarget)
Implements abstract tools. Method that may be called to find representation of given type within type hierarchy of this type: either this type (if this type has given erased type), one of its supertypes that has the erased types, or null if target is neither this type or any of its supertypes. |
| public JavaType[] | findTypeParameters(Class<?> expType)
Implements abstract tools. Method that may be used to find paramaterization this type has for given type-erased generic target type. |
| public TypeBindings | |
| public abstract 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 abstract StringBuilder | getGenericSignature(StringBuilder sb)
Implements abstract tools.
|
| public List | getInterfaces()
Implements abstract tools. Accessor for finding fully resolved interfaces this type implements, if any; empty array if none. |
| public JavaType | getSuperClass()
Implements abstract tools. Accessor for finding fully resolved parent class of this type, if it has one; null if not. |
| public void | serialize(JsonGenerator gen, SerializationContext provider)
Implements tools. Serialization method called when no additional type information is to be included in serialization. |
| public void | serializeWithType(JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer)
Implements tools. Serialization method called when additional type information is expected to be included in serialization, for deserialization to use. |
| public String | toCanonical()
Implements abstract tools. Method that can be used to serialize type into form from which
it can be fully deserialized from at a later point (using
|
| _bindings | back to summary |
|---|---|
| protected final TypeBindings _bindings Bindings in effect for this type instance; possibly empty. Needed when resolving types declared in members of this type (if any). | |
| _canonicalName | back to summary |
|---|---|
| pack-priv transient volatile String _canonicalName Lazily initialized external representation of the type | |
| _superClass | back to summary |
|---|---|
| protected final JavaType _superClass | |
| _superInterfaces | back to summary |
|---|---|
| protected final JavaType[] _superInterfaces | |
| NO_BINDINGS | back to summary |
|---|---|
| private static final TypeBindings NO_BINDINGS | |
| NO_TYPES | back to summary |
|---|---|
| private static final JavaType[] NO_TYPES | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TypeBase | back to summary |
|---|---|
| protected TypeBase(Class<?> raw, TypeBindings bindings, JavaType superClass, JavaType[] superInts, int hash, Object valueHandler, Object typeHandler, boolean asStatic) Main constructor to use by extending classes. | |
| TypeBase | back to summary |
|---|---|
| protected TypeBase(TypeBase base) Copy-constructor used when refining/upgrading type instances. | |
| _classSignature | back to summary |
|---|---|
protected static StringBuilder _classSignature(Class<?> cls, StringBuilder sb, boolean trailingSemicolon)
| |
| _hasNTypeParameters | back to summary |
|---|---|
| protected boolean _hasNTypeParameters(int count) | |
| buildCanonicalName | back to summary |
|---|---|
| protected String buildCanonicalName() | |
| containedType | back to summary |
|---|---|
| public JavaType containedType(int index) Implements abstract tools. Doc from tools. Method for accessing definitions of contained ("child") types.
| |
| containedTypeCount | back to summary |
|---|---|
| public int containedTypeCount() Implements abstract tools. Doc from tools. Method for checking how many contained types this type has. Contained types are usually generic types, so that generic Maps have 2 contained types.
| |
| findSuperType | back to summary |
|---|---|
| public final JavaType findSuperType(Class<?> rawTarget) Implements abstract tools. Doc from tools. Method that may be called to find representation of given type within type hierarchy of this type: either this type (if this type has given erased type), one of its supertypes that has the erased types, or null if target is neither this type or any of its supertypes.
| |
| findTypeParameters | back to summary |
|---|---|
| public JavaType[] findTypeParameters(Class<?> expType) Implements abstract tools. Doc from tools. Method that may be used to find paramaterization this type has for given type-erased generic target type.
| |
| getBindings | back to summary |
|---|---|
| public TypeBindings getBindings() Implements abstract tools.
| |
| getErasedSignature | back to summary |
|---|---|
| public abstract 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 abstract StringBuilder getGenericSignature(StringBuilder sb) Implements abstract tools.
| |
| getInterfaces | back to summary |
|---|---|
| public List Implements abstract tools. Doc from tools. Accessor for finding fully resolved interfaces this type implements, if any; empty array if none.
| |
| getSuperClass | back to summary |
|---|---|
| public JavaType getSuperClass() Implements abstract tools. Doc from tools. Accessor for finding fully resolved parent class of this type, if it has one; null if not.
| |
| serialize | back to summary |
|---|---|
| public void serialize(JsonGenerator gen, SerializationContext provider) throws JacksonException Implements tools. Doc from tools. Serialization method called when no additional type information is to be included in serialization.
| |
| serializeWithType | back to summary |
|---|---|
| public void serializeWithType(JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) throws JacksonException Implements tools. Doc from tools. Serialization method called when additional type information is expected to be included in serialization, for deserialization to use.
Usually implementation consists of a call to Note that some types (most notably, "natural" types: String, Integer, Double and Boolean) never include type information.
| |
| toCanonical | back to summary |
|---|---|
| public String toCanonical() Implements abstract tools. Doc from tools. Method that can be used to serialize type into form from which
it can be fully deserialized from at a later point (using
| |