org.codehaus.jackson.map.type
Class HierarchicType
java.lang.Object
org.codehaus.jackson.map.type.HierarchicType
public class HierarchicType
- extends Object
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
_actualType
protected final Type _actualType
- Type which will be either plain
Class
or
ParameterizedType
.
_rawClass
protected final Class<?> _rawClass
_genericType
protected final ParameterizedType _genericType
_superType
protected HierarchicType _superType
_subType
protected HierarchicType _subType
HierarchicType
public HierarchicType(Type type)
setSuperType
public void setSuperType(HierarchicType sup)
getSuperType
public HierarchicType getSuperType()
setSubType
public void setSubType(HierarchicType sub)
getSubType
public HierarchicType getSubType()
isGeneric
public boolean isGeneric()
asGeneric
public ParameterizedType asGeneric()
getRawClass
public Class<?> getRawClass()
toString
public String toString()
- Overrides:
toString
in class Object