public class HierarchicType extends Object
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 directionsModifier and Type | Field and Description |
---|---|
protected Type |
_actualType
Type which will be either plain
Class or
ParameterizedType . |
protected ParameterizedType |
_genericType |
protected Class<?> |
_rawClass |
protected HierarchicType |
_subType |
protected HierarchicType |
_superType |
Constructor and Description |
---|
HierarchicType(Type type) |
Modifier and Type | Method and Description |
---|---|
ParameterizedType |
asGeneric() |
HierarchicType |
deepCloneWithoutSubtype()
Method that can be used to create a deep clone of this hierarchic type, including
super types (but not subtypes)
|
Class<?> |
getRawClass() |
HierarchicType |
getSubType() |
HierarchicType |
getSuperType() |
boolean |
isGeneric() |
void |
setSubType(HierarchicType sub) |
void |
setSuperType(HierarchicType sup) |
String |
toString() |
protected final Type _actualType
Class
or
ParameterizedType
.protected final Class<?> _rawClass
protected final ParameterizedType _genericType
protected HierarchicType _superType
protected HierarchicType _subType
public HierarchicType(Type type)
public HierarchicType deepCloneWithoutSubtype()
public void setSuperType(HierarchicType sup)
public final HierarchicType getSuperType()
public void setSubType(HierarchicType sub)
public final HierarchicType getSubType()
public final boolean isGeneric()
public final ParameterizedType asGeneric()
public final Class<?> getRawClass()
Copyright © 2014-2015 FasterXML. All Rights Reserved.