Package org.codehaus.jackson.map.type
Class HierarchicType
java.lang.Object
org.codehaus.jackson.map.type.HierarchicType
Simple replacement for
Class
(and/or various Type subtypes)
that is used as part of single-path extends/implements chain to express
specific relationship between one subtype and one supertype. This is needed
for resolving type parameters. Instances are doubly-linked so that chain
can be traversed in both directions- Since:
- 1.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Type
Type which will be either plainClass
orParameterizedType
.protected final ParameterizedType
protected final Class
<?> protected HierarchicType
protected HierarchicType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ParameterizedType
Method that can be used to create a deep clone of this hierarchic type, including super types (but not subtypes)final Class
<?> final HierarchicType
final HierarchicType
final boolean
void
setSubType
(HierarchicType sub) void
toString()
-
Field Details
-
_actualType
Type which will be either plainClass
orParameterizedType
. -
_rawClass
-
_genericType
-
_superType
-
_subType
-
-
Constructor Details
-
HierarchicType
-
-
Method Details
-
deepCloneWithoutSubtype
Method that can be used to create a deep clone of this hierarchic type, including super types (but not subtypes)- Since:
- 1.9
-
setSuperType
-
getSuperType
-
setSubType
-
getSubType
-
isGeneric
public final boolean isGeneric() -
asGeneric
-
getRawClass
-
toString
-