JavaType from "databind" bundle -- this
abstraction is only needed so that types can be passed through
com.fasterxml.jackson.core.JsonParser#readValueAs methods.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract ResolvedType | Returns: Contained type at index, or null if no such type exists (no exception thrown)Index of contained type to return index)Method for accessing definitions of contained ("child") types. |
| public abstract int | Returns: Number of contained types that may be accessedMethod for checking how many contained types this type has. |
| public abstract String | Returns: Contained type at index, or null if no such type exists (no exception thrown)Index of contained type to return index)Method for accessing name of type variable in indicated position. |
| public abstract ResolvedType | Returns: Content type of this type, if any;null if noneMethod 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 abstract ResolvedType | Returns: Key type of this type, if any;null if noneMethod for accessing key type for this type, assuming type has such a concept (only Map types do) |
| public Class | Returns: Type-erased class of something not usable at this point
Deprecated
Since 2.7: does not have meaning as parameters depend on type
resolved.
|
| public abstract Class | |
| public abstract ResolvedType | Returns: Referenced type, if any;null if not.Method for accessing type of value that instances of this type references, if any. |
| public abstract boolean | Returns: True if this type has generic type parameters, false if notMethod that can be used to find out if the type directly declares generic parameters (for its direct super-class and/or super-interfaces). |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public boolean | Returns: True if this is a "referential" type, false if notWhether this type is a referential type, meaning that values are basically pointers to "real" values (or null) and not regular values themselves. |
| public abstract boolean | |
| public abstract String | Returns: String representation of the fully resolved typeMethod that can be used to serialize type into form from which
it can be fully deserialized from at a later point (using
|
| ResolvedType | back to summary |
|---|---|
| public ResolvedType() | |
| containedType | back to summary |
|---|---|
| public abstract ResolvedType containedType(int index) Method for accessing definitions of contained ("child") types.
| |
| containedTypeCount | back to summary |
|---|---|
| public abstract int containedTypeCount() 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 abstract String containedTypeName(int index) 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.
| |
| getContentType | back to summary |
|---|---|
| public abstract ResolvedType getContentType() 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)
| |
| getKeyType | back to summary |
|---|---|
| public abstract ResolvedType getKeyType() Method for accessing key type for this type, assuming type has such a concept (only Map types do)
| |
| getParameterSource | back to summary |
|---|---|
| public Class Deprecated Since 2.7: does not have meaning as parameters depend on type resolved.
| |
| getRawClass | back to summary |
|---|---|
| public abstract Class | |
| getReferencedType | back to summary |
|---|---|
| public abstract ResolvedType getReferencedType() Method for accessing type of value that instances of this type references, if any.
| |
| hasGenericTypes | back to summary |
|---|---|
| public abstract boolean hasGenericTypes() Method that can be used to find out if the type directly declares generic parameters (for its direct super-class and/or super-interfaces).
| |
| hasRawClass | back to summary |
|---|---|
| public abstract boolean hasRawClass(Class<?> clz) | |
| isAbstract | back to summary |
|---|---|
| public abstract boolean isAbstract() | |
| isArrayType | back to summary |
|---|---|
| public abstract boolean isArrayType() | |
| isCollectionLikeType | back to summary |
|---|---|
| public abstract boolean isCollectionLikeType() | |
| isConcrete | back to summary |
|---|---|
| public abstract boolean isConcrete() | |
| isContainerType | back to summary |
|---|---|
| public abstract boolean isContainerType() | |
| isEnumType | back to summary |
|---|---|
| public abstract boolean isEnumType() | |
| isFinal | back to summary |
|---|---|
| public abstract boolean isFinal() | |
| isInterface | back to summary |
|---|---|
| public abstract boolean isInterface() | |
| isMapLikeType | back to summary |
|---|---|
| public abstract boolean isMapLikeType() | |
| isPrimitive | back to summary |
|---|---|
| public abstract boolean isPrimitive() | |
| isReferenceType | back to summary |
|---|---|
| public boolean isReferenceType() Whether this type is a referential type, meaning that values are
basically pointers to "real" values (or null) and not regular
values themselves. Typical examples include things like
| |
| isThrowable | back to summary |
|---|---|
| public abstract boolean isThrowable() | |
| toCanonical | back to summary |
|---|---|
| public abstract String toCanonical() Method that can be used to serialize type into form from which
it can be fully deserialized from at a later point (using
| |