| 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 JavaType | _bogusSuperClass(Class<?> cls)
Internal helper method used to figure out nominal super-class for deprecated factory methods / constructors, where we are not given properly resolved supertype hierarchy. |
| 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 of contained type to return index)Implements abstract com. |
| public int | containedTypeCount()
Implements abstract com. |
| public String | containedTypeName(int
Index of contained type to return index)Implements abstract com.
Deprecated
Method for accessing name of type variable in indicated
position.
|
| public final JavaType | findSuperType(Class<?> rawTarget)
Implements abstract com. |
| public JavaType[] | findTypeParameters(Class<?> expType)
Implements abstract com. |
| public TypeBindings | |
| public abstract StringBuilder | getErasedSignature(StringBuilder
StringBuilder to append signature to sb)Implements abstract com. |
| public abstract StringBuilder | getGenericSignature(StringBuilder
StringBuilder to append signature to sb)Implements abstract com. |
| public List | getInterfaces()
Implements abstract com. |
| public JavaType | getSuperClass()
Implements abstract com. |
| public void | serialize(JsonGenerator gen, SerializerProvider provider)
Implements com. |
| public void | serializeWithType(JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
Implements com. |
| public String | toCanonical()
Implements abstract com. TypeFactory from mapper package).
|
| _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 Hides com. | |
| 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.
| |
| _bogusSuperClass | back to summary |
|---|---|
| protected static JavaType _bogusSuperClass(Class<?> cls) Internal helper method used to figure out nominal super-class for deprecated factory methods / constructors, where we are not given properly resolved supertype hierarchy. Will basically give `JavaType` for `java.lang.Object` for classes other than `java.lafgn.Object`; null for others.
| |
| _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 com. Doc from com. Method for accessing definitions of contained ("child") types. | |
| containedTypeCount | back to summary |
|---|---|
| public int containedTypeCount() Implements abstract com. Doc from com. Method for checking how many contained types this type has. Contained types are usually generic types, so that generic Maps have 2 contained types.
| |
| containedTypeName | back to summary |
|---|---|
| public String containedTypeName(int index) Implements abstract com. Doc from com. Deprecated
Method for accessing name of type variable in indicated position. If no name is bound, will use placeholders (derived from 0-based index); if no type variable or argument exists with given index, null is returned.
| |
| findSuperType | back to summary |
|---|---|
| public final JavaType findSuperType(Class<?> rawTarget) Implements abstract com. Doc from com. 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 com. Doc from com. 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 com.
| |
| getErasedSignature | back to summary |
|---|---|
| public abstract 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 abstract StringBuilder getGenericSignature(StringBuilder sb) Implements abstract com.
| |
| getInterfaces | back to summary |
|---|---|
| public List Implements abstract com. Doc from com. Accessor for finding fully resolved interfaces this type implements, if any; empty array if none.
| |
| getSuperClass | back to summary |
|---|---|
| public JavaType getSuperClass() Implements abstract com. Doc from com. 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, SerializerProvider provider) throws IOException Implements com. Doc from com. Serialization method called when no additional type information is to be included in serialization.
| |
| serializeWithType | back to summary |
|---|---|
| public void serializeWithType(JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer) throws IOException Implements com. Doc from com. 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 com. Doc from com. Method that can be used to serialize type into form from which
it can be fully deserialized from at a later point (using
| |